diff options
author | Thanos Apollo <[email protected]> | 2024-03-05 03:43:48 +0200 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-03-05 03:43:48 +0200 |
commit | a140dea269703c52c7dc86931dec1c17d8928816 (patch) | |
tree | 5b6129349565f896663d63d588d781ee04545511 | |
parent | c6d04c20512cd44d2fc3d724b4e8a388964194ad (diff) |
gnosis-cloze-replace-words: Use \\b
Make sure it replace word properly, including dashes/symbols
-rw-r--r-- | gnosis.el | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -754,7 +754,7 @@ Works both with {} and {{}} to make easier to import anki notes." "In STRING replace only the first occurrence of each word in WORDS with NEW." (cl-assert (listp words)) (cl-loop for word in words - do (if (string-match (concat "\\<" word "\\>") string) + do (if (string-match (concat "\\b" word "\\b") string) (setq string (replace-match new t t string)) ;; This error will be produced when user has edited a ;; note to an invalid cloze. |