From 5af99566faf7bd0f70ae4737d4d845c80b6fc80d Mon Sep 17 00:00:00 2001 From: Ken Date: Fri, 11 Aug 2017 01:27:31 +1200 Subject: [PATCH] Wait includes is case sensitive Made it convert to lowercase before comparing --- src/blocks/scratch3_operators.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blocks/scratch3_operators.js b/src/blocks/scratch3_operators.js index 01cae80dc..5e48a1d35 100644 --- a/src/blocks/scratch3_operators.js +++ b/src/blocks/scratch3_operators.js @@ -109,7 +109,7 @@ class Scratch3OperatorsBlocks { } contains (args) { - return Cast.toString(args.STRING1).includes(Cast.toString(args.STRING2)); + return Cast.toString(args.STRING1).toLowerCase().includes(Cast.toString(args.STRING2).toLowerCase()); } mod (args) {