fix: fix regex modifier for input rules and paste rules, fix #2003

This commit is contained in:
Philipp Kühn
2021-10-10 21:27:37 +02:00
parent 9d281e9e99
commit 65eddf0e78
6 changed files with 15 additions and 15 deletions

View File

@@ -29,8 +29,8 @@ declare module '@tiptap/core' {
}
}
export const inputRegex = /(?:^|\s)((?:==)((?:[^~]+))(?:==))$/gm
export const pasteRegex = /(?:^|\s)((?:==)((?:[^~]+))(?:==))/gm
export const inputRegex = /(?:^|\s)((?:==)((?:[^~]+))(?:==))$/
export const pasteRegex = /(?:^|\s)((?:==)((?:[^~]+))(?:==))/g
export const Highlight = Mark.create<HighlightOptions>({
name: 'highlight',