branch: elpa/gnosis
commit b85b9b6e27b73998a09ae8c62ed508271f7b0888
Author: Thanos Apollo <pub...@thanosapollo.org>
Commit: Thanos Apollo <pub...@thanosapollo.org>

    compare-strings: Use trim-quotes.
    
    + Users will be able to use quotes to include spaces in their answer.
---
 gnosis.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnosis.el b/gnosis.el
index c853b5456f..e6edddf369 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -959,8 +959,8 @@ Compare 2 strings, ignoring case and whitespace."
                                 #'(lambda (str1 str2) (<= (string-distance 
str1 str2) gnosis-string-difference))
                               #'string=)))
     (funcall string-compare-func
-            (downcase (replace-regexp-in-string "\\s-" "" str1))
-            (downcase (replace-regexp-in-string "\\s-" "" str2)))))
+            (downcase (replace-regexp-in-string "\\s-" "" (gnosis-trim-quotes 
str1)))
+            (downcase (replace-regexp-in-string "\\s-" "" (gnosis-trim-quotes 
str2))))))
 
 (defun gnosis-get-tags--unique ()
   "Return a list of unique strings for tags in `gnosis-db'."

Reply via email to