workspace:fix - front matter not extracted on Windows

This commit is contained in:
squidfunk
2025-11-01 17:16:20 +01:00
parent 00d8a8b0ed
commit 88c6c8bfdd
+2 -1
View File
@@ -40,7 +40,8 @@ from .extensions.search import SearchExtension
FRONT_MATTER_RE = re.compile(
r"^-{3}[ \t]*\n(.*?\n)(?:\.{3}|-{3})[ \t]*\n", re.UNICODE | re.DOTALL
r"^-{3}[ \r\t]*?\n(.*?\r?\n)(?:\.{3}|-{3})[ \r\t]*\n",
re.UNICODE | re.DOTALL,
)
"""
Regex pattern to extract front matter.