| Index: test/matcher.js |
| diff --git a/test/matcher.js b/test/matcher.js |
| index 47a469bb445cfa9594f0e96a2f547e253b94156c..446263a59be324e4db97804d7b250a4df06b0f27 100644 |
| --- a/test/matcher.js |
| +++ b/test/matcher.js |
| @@ -42,13 +42,13 @@ function compareKeywords(test, text, expected) |
| { |
| let matcher = new Matcher(); |
| let result = []; |
| - for (let dummy of expected) |
| + for (let i = 0; i < expected.length; i++) |
| { |
| let keyword = matcher.findKeyword(filter); |
| result.push(keyword); |
| if (keyword) |
| { |
| - let dummyFilter = Filter.fromText('^' + keyword + '^'); |
| + let dummyFilter = Filter.fromText("^" + keyword + "^"); |
| dummyFilter.filterCount = Infinity; |
| matcher.add(dummyFilter); |
| } |
| @@ -76,7 +76,7 @@ function checkMatch(test, filters, location, contentType, docDomain, thirdParty, |
| for (let filter of filters) |
| combinedMatcher.add(Filter.fromText(filter)); |
| - let result = combinedMatcher.matchesAny(location, RegExpFilter.typeMap[contentType], docDomain, thirdParty, sitekey, specificOnly); |
| + result = combinedMatcher.matchesAny(location, RegExpFilter.typeMap[contentType], docDomain, thirdParty, sitekey, specificOnly); |
| if (result) |
| result = result.text; |