Merge pull request #2698 from ueberdosis/fix-task-item-regex

fix: allow [] as a prefix for task items
This commit is contained in:
bdbch 2022-04-10 21:44:58 +02:00 committed by GitHub
commit 5b4f3d634f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,7 @@ export interface TaskItemOptions {
HTMLAttributes: Record<string, any>,
}
export const inputRegex = /^\s*(\[([ |x])\])\s$/
export const inputRegex = /^\s*(\[([( |x])?\])\s$/
export const TaskItem = Node.create<TaskItemOptions>({
name: 'taskItem',