Skip to content

Commit 07ddf17

Browse files
committed
Fix bug in includes
1 parent ef8d0d2 commit 07ddf17

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

dist/easycoder-min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/easycoder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3064,7 +3064,7 @@ const EasyCoder_Core = {
30643064
}
30653065
return !condition.sense;
30663066
case `includes`:
3067-
const value1 = JSON.parse(program.getValue(condition.value1));
3067+
const value1 = program.getValue(condition.value1);
30683068
const value2 = program.getValue(condition.value2);
30693069
return value1.includes(value2);
30703070
}

js/easycoder/Core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3064,7 +3064,7 @@ const EasyCoder_Core = {
30643064
}
30653065
return !condition.sense;
30663066
case `includes`:
3067-
const value1 = JSON.parse(program.getValue(condition.value1));
3067+
const value1 = program.getValue(condition.value1);
30683068
const value2 = program.getValue(condition.value2);
30693069
return value1.includes(value2);
30703070
}

0 commit comments

Comments
 (0)