Skip to content

Commit fc7a315

Browse files
committedJan 14, 2022
Bug in 'every'
1 parent bc5f161 commit fc7a315

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed
 

‎dist/easycoder-min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/easycoder.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ const EasyCoder_Core = {
586586
compile: compiler => {
587587
const lino = compiler.getLino();
588588
const rate = compiler.getNextValue();
589-
const m = compiler.peek();
589+
const m = compiler.getToken();
590590
let multiplier = 1000;
591591
if ([`minute`,
592592
`minutes`,
@@ -608,8 +608,8 @@ const EasyCoder_Core = {
608608
multiplier = 10;
609609
break;
610610
}
611+
compiler.next();
611612
}
612-
compiler.next();
613613
compiler.addCommand({
614614
domain: `core`,
615615
keyword: `every`,

‎js/easycoder/Core.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ const EasyCoder_Core = {
586586
compile: compiler => {
587587
const lino = compiler.getLino();
588588
const rate = compiler.getNextValue();
589-
const m = compiler.peek();
589+
const m = compiler.getToken();
590590
let multiplier = 1000;
591591
if ([`minute`,
592592
`minutes`,
@@ -608,8 +608,8 @@ const EasyCoder_Core = {
608608
multiplier = 10;
609609
break;
610610
}
611+
compiler.next();
611612
}
612-
compiler.next();
613613
compiler.addCommand({
614614
domain: `core`,
615615
keyword: `every`,

0 commit comments

Comments
 (0)