summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}