diff options
| author | jmoenig <jens@moenig.org> | 2013-12-04 09:47:42 +0100 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2013-12-04 09:47:42 +0100 |
| commit | 9faa4844d4ab528e5f689afdd042efe07ab81605 (patch) | |
| tree | 5338c44500676b071cdb29561f72fbb517e4aa68 | |
| parent | 3b596cf6fb6258665f4f31077552c678a23d06e1 (diff) | |
| download | snap-byow-9faa4844d4ab528e5f689afdd042efe07ab81605.tar.gz snap-byow-9faa4844d4ab528e5f689afdd042efe07ab81605.zip | |
handle text comparisons case-insensitive (again)
| -rwxr-xr-x | history.txt | 8 | ||||
| -rw-r--r-- | threads.js | 10 |
2 files changed, 11 insertions, 7 deletions
diff --git a/history.txt b/history.txt index d00869d..b5f1e6d 100755 --- a/history.txt +++ b/history.txt @@ -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 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 #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) + @@ -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; } |
