Cleaned up

This commit is contained in:
Ken 2017-08-11 01:58:59 +12:00 committed by GitHub
parent 328514ae63
commit 28e61dbf48

View file

@ -109,8 +109,10 @@ class Scratch3OperatorsBlocks {
}
contains (args) {
return Cast.toString(args.STRING1).toLowerCase()
.includes(Cast.toString(args.STRING2).toLowerCase());
const format = function (string) {
return Cast.toString(string).toLowerCase()
}
return format(args.STRING1).includes(format(args.STRING2))
}
mod (args) {