diff options
| author | jmoenig <jens@moenig.org> | 2013-11-26 12:05:13 +0100 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2013-11-26 12:05:13 +0100 |
| commit | f10a16e3f60de760485d6acc07aa8d2e4800c6c4 (patch) | |
| tree | 25da82a40003e728315d5eb2a2f180b0c191da09 | |
| parent | fcfb3d1798136529d49cf2ab987ba8c7d2daddea (diff) | |
| download | snap-f10a16e3f60de760485d6acc07aa8d2e4800c6c4.tar.gz snap-f10a16e3f60de760485d6acc07aa8d2e4800c6c4.zip | |
fixed #175 - Text comparisons are now case sensitive
| -rwxr-xr-x | history.txt | 1 | ||||
| -rw-r--r-- | threads.js | 5 |
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) @@ -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; } |
