Skip to content

Commit 8df8b77

Browse files
committed
refactor(4.3.1): use forEach
1 parent c128e1c commit 8df8b77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/4.3.1.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function reporter(context) {
3535
rx`([\(\)])(?:.*${japaneseRegExp})`,
3636
rx`(?:${japaneseRegExp}.*)([\(\)])`
3737
];
38-
for (const matchRegExp of matchRegExps) {
38+
matchRegExps.forEach(matchRegExp => {
3939
matchCaptureGroupAll(text, matchRegExp).forEach(match => {
4040
const { index } = match;
4141
report(
@@ -46,7 +46,7 @@ function reporter(context) {
4646
})
4747
);
4848
});
49-
}
49+
});
5050
}
5151
};
5252
}

0 commit comments

Comments
 (0)