mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +00:00
LibMarkdown: Avoid catastrophic backtracking in thematic break regex
Fixes #17937
This commit is contained in:
parent
0abdffc33d
commit
bebcf71bdc
Notes:
sideshowbarker
2024-07-17 05:13:53 +09:00
Author: https://github.com/tcl3 Commit: https://github.com/SerenityOS/serenity/commit/bebcf71bdc Pull-request: https://github.com/SerenityOS/serenity/pull/18332 Issue: https://github.com/SerenityOS/serenity/issues/17937
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ RecursionDecision HorizontalRule::walk(Visitor& visitor) const
|
|||
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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue