Skip to content

Commit

Permalink
Minor style change for uniformity.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhop committed Jul 28, 2023
1 parent 7463a02 commit f827401
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion re2.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if (typeof Symbol != 'undefined') {
for (;;) {
const result = re.exec(str);
if (!result) break;
if (result[0] === '') re.lastIndex++;
if (result[0] === '') ++re.lastIndex;
yield result;
}
});
Expand Down
2 changes: 1 addition & 1 deletion tests/test_matchAll.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ unit.add(module, [
const result = Array.from(str.matchAll(re));

eval(t.TEST('result.length === str.length + 1'));
for (let i = 0; i < result.length; i++) {
for (let i = 0; i < result.length; ++i) {
eval(t.TEST(`result[${i}][0] === ''`));
}
}
Expand Down

0 comments on commit f827401

Please sign in to comment.