diff --git a/src/blocks/scratch3_operators.js b/src/blocks/scratch3_operators.js index d604aada7..2feda2dac 100644 --- a/src/blocks/scratch3_operators.js +++ b/src/blocks/scratch3_operators.js @@ -110,9 +110,9 @@ class Scratch3OperatorsBlocks { contains (args) { const format = function (string) { - return Cast.toString(string).toLowerCase() - } - return format(args.STRING1).includes(format(args.STRING2)) + return Cast.toString(string).toLowerCase(); + }; + return format(args.STRING1).includes(format(args.STRING2)); } mod (args) {