From f10a16e3f60de760485d6acc07aa8d2e4800c6c4 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Tue, 26 Nov 2013 12:05:13 +0100 Subject: fixed #175 - Text comparisons are now case sensitive --- history.txt | 1 + threads.js | 5 +++++ 2 files changed, 6 insertions(+) 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; } -- cgit v1.3.1