diff options
author | Thanos Apollo <[email protected]> | 2024-04-02 12:47:25 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-04-02 12:47:25 +0300 |
commit | 23e699ca71c2c8898f5968e3c27a1ff71cac80b6 (patch) | |
tree | 947873d80c4580529810cba38b90c14af7359994 /gnosis.el | |
parent | 78e066b94809fb7746086a1ca6b7d7c39d353343 (diff) |
gnosis-cloze-replace-words: Do not use regexp for word
Diffstat (limited to 'gnosis.el')
-rw-r--r-- | gnosis.el | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -799,7 +799,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 "\\b" (regexp-quote word) "\\b") 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. |