mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:07:45 +00:00
LibMarkdown: Avoid catastrophic backtracking in thematic break regex
Fixes #17937
This commit is contained in:
parent
0abdffc33d
commit
bebcf71bdc
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ RecursionDecision HorizontalRule::walk(Visitor& visitor) const
|
||||||
return RecursionDecision::Continue;
|
return RecursionDecision::Continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
static Regex<ECMA262> thematic_break_re("^ {0,3}([\\*\\-_])(\\s*\\1\\s*){2,}$");
|
static Regex<ECMA262> thematic_break_re("^ {0,3}([\\*\\-_])\\s*(\\1\\s*){2,}$");
|
||||||
|
|
||||||
OwnPtr<HorizontalRule> HorizontalRule::parse(LineIterator& lines)
|
OwnPtr<HorizontalRule> HorizontalRule::parse(LineIterator& lines)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue