Index: lib/filterClasses.js |
=================================================================== |
--- a/lib/filterClasses.js |
+++ b/lib/filterClasses.js |
@@ -643,17 +643,17 @@ |
*/ |
regexpSource: null, |
/** |
* Regular expression to be used when testing against this filter |
* @type {RegExp} |
*/ |
get regexp() |
{ |
- let source = filterToRegExp(this.regexpSource); |
+ let source = filterToRegExp(this.regexpSource, this.rewrite == null); |
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 |