From 5bfd340176f552d6f7c880928e4460de3a6fd65f Mon Sep 17 00:00:00 2001 From: Mo Tarbin Date: Mon, 1 Dec 2025 17:58:06 -0500 Subject: [PATCH] Support unicode letter in the parser. Fix https://github.com/donetick/donetick/issues/395 --- src/views/components/CustomParsers.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/components/CustomParsers.js b/src/views/components/CustomParsers.js index 64691c2..314c6e9 100644 --- a/src/views/components/CustomParsers.js +++ b/src/views/components/CustomParsers.js @@ -89,7 +89,8 @@ export const parseLabels = (inputSentence, userLabels) => { const allHighlights = [] // Find all #label patterns in the sentence - const labelPattern = /#(\w+)/gi + // Use [\p{L}\p{N}_]+ to support Unicode letters (including umlauts) and numbers + const labelPattern = /#([\p{L}\p{N}_]+)/giu const matches = [...inputSentence.matchAll(labelPattern)] for (const match of matches) {