mirror of
https://github.com/docmost/docmost.git
synced 2026-08-19 18:44:09 +08:00
fix exponential backtracking in regex
This commit is contained in:
@@ -14,7 +14,7 @@ interface TabbedToken {
|
||||
}
|
||||
|
||||
const HEADER_RE =
|
||||
/^===([!+])?\s*["'“”‘’]((?:\\.|[^"'“”‘’\n])+?)["'“”‘’]\s*$/gm;
|
||||
/^===([!+])?\s*["'“”‘’]((?:\\["\\]|[^\\"'“”‘’\n])+?)["'“”‘’]\s*$/gm;
|
||||
|
||||
export const tabsExtension = {
|
||||
name: 'tabbed',
|
||||
|
||||
Reference in New Issue
Block a user