Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve issue with catastrophic backtracking regex (#436)
Catastrophic backtracking in the `BREAK_THEMATIC_R` regex causes parsing to hang on non-matching input with repeating asterisks like this: ``` * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * SOME TEXT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ``` or even just: ``` * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ``` This minor regex change resolves that issue without changing the matched pattern or capture group.
- Loading branch information