Index: lib/matcher.js |
=================================================================== |
--- a/lib/matcher.js |
+++ b/lib/matcher.js |
@@ -423,16 +423,29 @@ |
if (this._resultCache.size >= this.maxCacheEntries) |
this._resultCache.clear(); |
this._resultCache.set(key, result); |
return result; |
} |
+ |
+ /** |
+ * Tests whether the URL is whitelisted |
+ * @see Matcher#matchesAny |
+ * @inheritdoc |
+ * @returns {boolean} |
+ */ |
+ isWhitelisted(location, typeMask, docDomain, thirdParty, sitekey, |
+ specificOnly) |
+ { |
+ return !!this._whitelist.matchesAny(location, typeMask, docDomain, |
+ thirdParty, sitekey, specificOnly); |
+ } |
hub
2018/12/11 13:59:54
do we use this anywhere?
Manish Jethani
2018/12/12 00:48:06
We will call this function from lib/filterComposer
hub
2018/12/12 07:27:09
Acknowledged.
|
} |
exports.CombinedMatcher = CombinedMatcher; |
/** |
* Shared {@link CombinedMatcher} instance that should usually be used. |
* @type {CombinedMatcher} |
*/ |