mirror of
https://github.com/docmost/docmost.git
synced 2026-08-19 19:01:37 +10:00
fix exponential backtracking in regex
This commit is contained in:
@@ -15,7 +15,8 @@ export interface TabsOptions {
|
||||
view: ComponentType<ReactNodeViewProps<HTMLElement>> | null;
|
||||
}
|
||||
|
||||
const TAB_INPUT_REGEX = /^\s*===\s*["'“”‘’]((?:\\.|[^"'“”‘’\n])+?)["'“”‘’]\s+$/;
|
||||
const TAB_INPUT_REGEX =
|
||||
/^\s*===\s*["'“”‘’]((?:\\["\\]|[^\\"'“”‘’\n])+?)["'“”‘’]\s+$/;
|
||||
|
||||
declare module '@tiptap/core' {
|
||||
interface Commands<ReturnType> {
|
||||
|
||||
Reference in New Issue
Block a user