summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-09-08 15:52:22 +0300
committerThanos Apollo <[email protected]>2024-09-08 15:52:22 +0300
commitf3d8505c34feb8c61720db87b028f4328e85d05e (patch)
treeac1f3dbb4396c559b1576236fe7af18505875beb
parent40f63788afdb74fa71177abd882e852177829881 (diff)
[fix] cloze-remove-tags: Update regex for extra colons.
* Ignore colons after the initial colon specifying tag.
-rw-r--r--gnosis.el2
1 files changed, 1 insertions, 1 deletions
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))