From f3d8505c34feb8c61720db87b028f4328e85d05e Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Sun, 8 Sep 2024 15:52:22 +0300 Subject: [fix] cloze-remove-tags: Update regex for extra colons. * Ignore colons after the initial colon specifying tag. --- gnosis.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnosis.el b/gnosis.el index 444ff57..e23182b 100644 --- a/gnosis.el +++ b/gnosis.el @@ -1166,7 +1166,7 @@ TYPE: Type of gnosis note, must be one of `gnosis-note-types'" Works with both single (:), double colons (::), single braces ({}) and double braces ({{}})." - (let* ((regex "{\\{1,2\\}c[0-9]+:\\{1,2\\}\\([^:}]*\\).*?\\(}\\|::}\\)\\{1,2\\}") + (let* ((regex "{\\{1,2\\}c[0-9]+:\\{1,2\\}\\([^{}]*?\\)}\\{1,2\\}") (result (replace-regexp-in-string regex "\\1" string))) result)) -- cgit v1.2.3