summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmoenig <jens@moenig.org>2013-11-26 12:05:13 +0100
committerjmoenig <jens@moenig.org>2013-11-26 12:05:13 +0100
commitf10a16e3f60de760485d6acc07aa8d2e4800c6c4 (patch)
tree25da82a40003e728315d5eb2a2f180b0c191da09
parentfcfb3d1798136529d49cf2ab987ba8c7d2daddea (diff)
downloadsnap-f10a16e3f60de760485d6acc07aa8d2e4800c6c4.tar.gz
snap-f10a16e3f60de760485d6acc07aa8d2e4800c6c4.zip
fixed #175 - Text comparisons are now case sensitive
-rwxr-xr-xhistory.txt1
-rw-r--r--threads.js5
2 files changed, 6 insertions, 0 deletions
diff --git a/history.txt b/history.txt
index 8054f06..d8e5d8f 100755
--- a/history.txt
+++ b/history.txt
@@ -2014,3 +2014,4 @@ ______
* Threads: fixed #245 (consistently auto-convert empty strings to zeroes)
* Localization and Portuguese translation updates, thanks, Manuel!
* Catalan translation update, thanks, Bernat!!
+* Threads: Text comparisons are now case-sensitive („fixes“ #175)
diff --git a/threads.js b/threads.js
index d08445d..2259850 100644
--- a/threads.js
+++ b/threads.js
@@ -104,9 +104,14 @@ function snapEquals(a, b) {
x = a;
y = b;
}
+ /*
+ // handle text comparision text-insensitive.
+ // I think this is a pedagogical feature for novices,
+ // but some teachers disagree. Commented out for now.
if (isString(x) && isString(y)) {
return x.toLowerCase() === y.toLowerCase();
}
+ */
return x === y;
}