Skip to content

Commit

Permalink
Revert "fix: auto task completion break block ref (#2015)" (#2063)
Browse files Browse the repository at this point in the history
This reverts commit 60c46dc.
  • Loading branch information
Michael "Tres" Brenan authored Sep 24, 2023
1 parent 27b73fa commit 2a0f90e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/views/task-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ export function setTaskCompletion(
completionDateFormat: string,
complete: boolean
): string {
const blockIdRegex = /(?<!#)\^[a-z0-9\-]+/i;
const blockIdRegex = /\^[a-z0-9\-]+/i;

if (!complete && !useEmojiShorthand)
return trimEndingLines(setInlineField(originalText.trimEnd(), completionKey)).trimEnd();
Expand Down

0 comments on commit 2a0f90e

Please sign in to comment.