We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f87fc0 commit 86cdda3Copy full SHA for 86cdda3
1 file changed
src/md4cpp.cc
@@ -170,7 +170,7 @@ file
170
parse_file(const std::filesystem::path& src, const string_fragment& sf)
171
{
172
static const auto FRONTMATTER_RE = lnav::pcre2pp::code::from_const(
173
- R"((?:^---\n(.*?)\n---\n|^\+\+\+\n(.*)\n\+\+\+\n))",
+ R"((?:\A^---\n(.*?)\n---\n|\A^\+\+\+\n(.*)\n\+\+\+\n))",
174
PCRE2_MULTILINE | PCRE2_DOTALL);
175
thread_local auto md = FRONTMATTER_RE.create_match_data();
176
0 commit comments