fix(front-matter): remove os specific newline (#5752)

initial commit
This commit is contained in:
Tim Reichen 2024-08-22 09:43:11 +02:00 committed by GitHub
parent dea7d7701a
commit 9be9eaea4b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -21,9 +21,7 @@ const JSON_HEADER = `(---json|${JSON_DELIMITER})\\s*`;
const JSON_FOOTER = `(?:---|${JSON_DELIMITER})`;
const DATA = "([\\s\\S]+?)";
const NEWLINE = `${
globalThis?.Deno?.build?.os === "windows" ? "\\r?" : ""
}(?:\\n)?`;
const NEWLINE = "\\r?\\n?";
export const RECOGNIZE_YAML_REGEXP = new RegExp(`^${YAML_HEADER}$`, "im");
export const RECOGNIZE_TOML_REGEXP = new RegExp(`^${TOML_HEADER}$`, "im");