mirror of
https://github.com/docmost/docmost.git
synced 2026-08-24 02:32:12 +10:00
fix exponential backtracking in regex
This commit is contained in:
@@ -15,7 +15,8 @@ export interface TabsOptions {
|
|||||||
view: ComponentType<ReactNodeViewProps<HTMLElement>> | null;
|
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' {
|
declare module '@tiptap/core' {
|
||||||
interface Commands<ReturnType> {
|
interface Commands<ReturnType> {
|
||||||
|
|||||||
Reference in New Issue
Block a user