Ensure frontmatter regex matches first possible closing delimiter
This commit is contained in:
parent
c732fa92ed
commit
ef6c07f0ea
|
@ -168,7 +168,7 @@ fn main() {
|
|||
},
|
||||
};
|
||||
|
||||
let fm_re = RegexBuilder::new(r"---\n(?<frontmatter>.+)\n---")
|
||||
let fm_re = RegexBuilder::new(r"---\n(?<frontmatter>([^-]*?))\n---")
|
||||
.dot_matches_new_line(true)
|
||||
.build()
|
||||
.unwrap();
|
||||
|
|
Loading…
Reference in New Issue