kopia lustrzana https://github.com/backface/turtlestitch
handle text comparisons case-insensitive (again)
rodzic
3b596cf6fb
commit
9faa4844d4
|
@ -2007,7 +2007,7 @@ ______
|
||||||
* Blocks: Prevent „hide“ menu option for non-palette template blocks
|
* Blocks: Prevent „hide“ menu option for non-palette template blocks
|
||||||
* new Catalan translation! Yay, thanks, Bernat Romagosa Carrasquer!!
|
* new Catalan translation! Yay, thanks, Bernat Romagosa Carrasquer!!
|
||||||
|
|
||||||
132226
|
131126
|
||||||
------
|
------
|
||||||
* Cloud: fixed #125 (encode email address when signing up), thanks, Nathan!
|
* 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 don’t nitpick and spare me the fundamentalism :-)
|
* 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 don’t nitpick and spare me the fundamentalism :-)
|
||||||
|
@ -2018,3 +2018,9 @@ ______
|
||||||
* Threads: fixed #179 - don’t identify primitive (static) C-Slots as implicit formal parameters
|
* Threads: fixed #179 - don’t 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 #249 - preserve variable value types with edge cases (empty string, Boolean false)
|
||||||
* Threads: fixed #133 - preserve edge-cased argument types (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)
|
||||||
|
|
||||||
|
|
10
threads.js
10
threads.js
|
@ -83,7 +83,7 @@ ArgLabelMorph, localize, XML_Element, hex_sha512*/
|
||||||
|
|
||||||
// Global stuff ////////////////////////////////////////////////////////
|
// Global stuff ////////////////////////////////////////////////////////
|
||||||
|
|
||||||
modules.threads = '2013-November-26';
|
modules.threads = '2013-December-04';
|
||||||
|
|
||||||
var ThreadManager;
|
var ThreadManager;
|
||||||
var Process;
|
var Process;
|
||||||
|
@ -104,14 +104,12 @@ function snapEquals(a, b) {
|
||||||
x = a;
|
x = a;
|
||||||
y = b;
|
y = b;
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
// handle text comparision text-insensitive.
|
// 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)) {
|
if (isString(x) && isString(y)) {
|
||||||
return x.toLowerCase() === y.toLowerCase();
|
return x.toLowerCase() === y.toLowerCase();
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
return x === y;
|
return x === y;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue