From 07b9742d98d8068ae14f752babfe2715f031fc0b Mon Sep 17 00:00:00 2001 From: kolaente Date: Mon, 23 Mar 2026 18:18:20 +0100 Subject: [PATCH] fix: skip quick add magic parsing when text is wrapped in quotes Closes go-vikunja/vikunja#2392 --- frontend/src/modules/parseTaskText/parseTaskText.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/frontend/src/modules/parseTaskText/parseTaskText.ts b/frontend/src/modules/parseTaskText/parseTaskText.ts index 3a65989d3..573dabf70 100644 --- a/frontend/src/modules/parseTaskText/parseTaskText.ts +++ b/frontend/src/modules/parseTaskText/parseTaskText.ts @@ -22,6 +22,16 @@ export const parseTaskText = (text: string, prefixesMode: PrefixMode = PrefixMod repeats: null, } + // If the entire text is wrapped in quotes, strip them and skip all parsing + if ( + text.length >= 2 + && ((text.startsWith('"') && text.endsWith('"')) + || (text.startsWith('\'') && text.endsWith('\''))) + ) { + result.text = text.slice(1, -1) + return result + } + const prefixes = PREFIXES[prefixesMode] if (prefixes === undefined) { return result