Index: lib/filterClasses.js |
=================================================================== |
--- a/lib/filterClasses.js |
+++ b/lib/filterClasses.js |
@@ -224,21 +224,16 @@ |
else |
options[i] = option.replace(/ +/g, ""); |
} |
return beforeOptions + "$" + options.join(); |
}; |
/** |
- * @see filterToRegExp |
- */ |
-Filter.toRegExp = filterToRegExp; |
- |
-/** |
* Class for invalid filters |
* @param {string} text see {@link Filter Filter()} |
* @param {string} reason Reason why this filter is invalid |
* @constructor |
* @augments Filter |
*/ |
function InvalidFilter(text, reason) |
{ |
@@ -648,17 +643,17 @@ |
*/ |
regexpSource: null, |
/** |
* Regular expression to be used when testing against this filter |
* @type {RegExp} |
*/ |
get regexp() |
{ |
- let source = Filter.toRegExp(this.regexpSource); |
+ let source = filterToRegExp(this.regexpSource); |
let regexp = new RegExp(source, this.matchCase ? "" : "i"); |
Object.defineProperty(this, "regexp", {value: regexp}); |
this.regexpSource = null; |
return regexp; |
}, |
/** |
* Content types the filter applies to, combination of values from |
* RegExpFilter.typeMap |