mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-02 07:03:45 +00:00
fix(win32): handle CRLF line endings in markdown frontmatter parsing (#14886)
This commit is contained in:
@@ -22,7 +22,7 @@ export namespace ConfigMarkdown {
|
||||
if (!match) return content
|
||||
|
||||
const frontmatter = match[1]
|
||||
const lines = frontmatter.split("\n")
|
||||
const lines = frontmatter.split(/\r?\n/)
|
||||
const result: string[] = []
|
||||
|
||||
for (const line of lines) {
|
||||
|
||||
Reference in New Issue
Block a user