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