handle text comparisons case-insensitive (again)

pull/3/merge
jmoenig 2013-12-04 09:47:42 +01:00
rodzic 3b596cf6fb
commit 9faa4844d4
2 zmienionych plików z 11 dodań i 7 usunięć

Wyświetl plik

@ -2007,7 +2007,7 @@ ______
* Blocks: Prevent „hide“ menu option for non-palette template blocks
* new Catalan translation! Yay, thanks, Bernat Romagosa Carrasquer!!
132226
131126
------
* Cloud: fixed #125 (encode email address when signing up), thanks, Nathan!
* Threads: fixed #207 (stricter comparison of strings vs. numbers). Some edge cases remain, such as empty string equals zero and disregarding trailing / leading blanks. These are intentional. Please dont nitpick and spare me the fundamentalism :-)
@ -2018,3 +2018,9 @@ ______
* Threads: fixed #179 - dont identify primitive (static) C-Slots as implicit formal parameters
* Threads: fixed #249 - preserve variable value types with edge cases (empty string, Boolean false)
* Threads: fixed #133 - preserve edge-cased argument types (empty string, Boolean false)
* Fixed issue #244 (relabelling now preserves empty input slots), thanks, Nathan!
131204
------
* Threads: handle text comparisons case-insensitive (again)

Wyświetl plik

@ -83,7 +83,7 @@ ArgLabelMorph, localize, XML_Element, hex_sha512*/
// Global stuff ////////////////////////////////////////////////////////
modules.threads = '2013-November-26';
modules.threads = '2013-December-04';
var ThreadManager;
var Process;
@ -104,14 +104,12 @@ 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.
// handle text comparision text-insensitive.
if (isString(x) && isString(y)) {
return x.toLowerCase() === y.toLowerCase();
}
*/
return x === y;
}