diff --git a/packages/nc-gui/helpers/dbTiptapExtensions/task-item.ts b/packages/nc-gui/helpers/dbTiptapExtensions/task-item.ts index 1acb2733f4..be533a94d1 100644 --- a/packages/nc-gui/helpers/dbTiptapExtensions/task-item.ts +++ b/packages/nc-gui/helpers/dbTiptapExtensions/task-item.ts @@ -9,7 +9,7 @@ export interface TaskItemOptions { taskListTypeName: string } -export const inputRegex = /^\s*(\[([( |x])?\])\s$/ +export const inputRegex = /^\s*\[( |x)?\]\s$/i export const TaskItem = Node.create({ name: 'taskItem', @@ -178,7 +178,7 @@ export const TaskItem = Node.create({ find: inputRegex, type: this.type, getAttributes: (match) => ({ - checked: match[match.length - 1] === 'x', + checked: match[match.length - 1].toLowerCase() === 'x', }), }), ]