summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-01-10 08:48:00 +0200
committerThanos Apollo <[email protected]>2024-01-10 08:48:00 +0200
commiteb3fb50be9869d21099b6006d6ab05fd22e6ddf8 (patch)
treebd1fd6d73f885b31813ae7801c499a1ca8236cc7 /gnosis.el
parentf486d7c9ca080931e096e7b0059313cf5ed0a00b (diff)
gnosis-compare-strings: Redo without let statement
Diffstat (limited to 'gnosis.el')
-rw-r--r--gnosis.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/gnosis.el b/gnosis.el
index f462fec..7185add 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -649,9 +649,8 @@ Valid cloze formats include:
"Compare STR1 and STR2.
Compare 2 strings, ignoring case and whitespace."
- (let ((modified-str1 (downcase (replace-regexp-in-string "\\s-" "" str1)))
- (modified-str2 (downcase (replace-regexp-in-string "\\s-" "" str2))))
- (string= modified-str1 modified-str2)))
+ (string= (downcase (replace-regexp-in-string "\\s-" "" str1))
+ (downcase (replace-regexp-in-string "\\s-" "" str2))))
(defun gnosis-directory-files (&optional dir regex)
"Return a list of file paths, relative to DIR directory.