Skip to content

Commit 34f7a1f

Browse files
committed
Modify a variable name
1 parent 15012c0 commit 34f7a1f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

webextensions/chrome/background.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function wildmat(text, pat) {
6363
return domatch(text, pat, 0, 0);
6464
}
6565

66-
function regexMatch(url, pattern) {
66+
function regexMatch(text, pattern) {
6767
let regExp;
6868
try {
6969
regExp = new RegExp(pattern);
@@ -72,7 +72,7 @@ function regexMatch(url, pattern) {
7272
console.log('failed to compile a regex pattern: ', pattern);
7373
return false;
7474
}
75-
return regExp.test(url);
75+
return regExp.test(text);
7676
}
7777

7878
/*

0 commit comments

Comments
 (0)