summaryrefslogtreecommitdiff
path: root/threads.js
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 /threads.js
parentfcfb3d1798136529d49cf2ab987ba8c7d2daddea (diff)
downloadsnap-yow-f10a16e3f60de760485d6acc07aa8d2e4800c6c4.tar.gz
snap-yow-f10a16e3f60de760485d6acc07aa8d2e4800c6c4.zip
fixed #175 - Text comparisons are now case sensitive
Diffstat (limited to 'threads.js')
-rw-r--r--threads.js5
1 files changed, 5 insertions, 0 deletions
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;
}