Skip to content

Commit a4e197b

Browse files
committed
chore(util): use const instead of var
1 parent 8686d1b commit a4e197b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/util/match-index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ export function matchAll(text, regExp) {
3535
}
3636
const rx = new RegExp(regExp.source, flags);
3737
text.replace(rx, function () {
38-
var matchAll = Array.prototype.slice.call(arguments, 0, -2);
39-
var match = {};
38+
const matchAll = Array.prototype.slice.call(arguments, 0, -2);
39+
const match = {};
4040
match.all = matchAll;
4141

4242
match.input = arguments[arguments.length - 1];
@@ -72,8 +72,8 @@ export function matchAll(text, regExp) {
7272
matches.push(match);
7373
/*
7474
index,
75-
input
76-
all
75+
input,
76+
all,
7777
captureGroups = [{
7878
text,
7979
index

0 commit comments

Comments
 (0)