| Index: compiled/filter/RegExpFilter.cpp |
| =================================================================== |
| --- a/compiled/filter/RegExpFilter.cpp |
| +++ b/compiled/filter/RegExpFilter.cpp |
| @@ -310,17 +310,17 @@ |
| if (!error.empty()) |
| return Type::INVALID; |
| if (data.mPatternEnd - data.mPatternStart >= 2 && |
| text[data.mPatternStart] == u'/' && |
| text[data.mPatternEnd - 1] == u'/') |
| { |
| data.SetRegExp(GenerateRegExp(DependentString(text, data.mPatternStart + 1, |
| - data.mPatternEnd - data.mPatternStart - 2), data.mMatchCase)); |
| + data.mPatternEnd - data.mPatternStart - 2), data.mMatchCase, false)); |
| if (data.mRegexpId == -1) |
| { |
| error.reset(u"filter_invalid_regexp"_str); |
| return Type::INVALID; |
| } |
| } |
| return type; |
| @@ -386,12 +386,12 @@ |
| !IsActiveOnDomain(docDomain, sitekey)) |
| { |
| return false; |
| } |
| if (!mData.RegExpParsingDone()) |
| { |
| const OwnedString pattern(mData.GetRegExpSource(mText)); |
| - mData.SetRegExp(GenerateRegExp(RegExpFromSource(pattern), mData.mMatchCase)); |
| + mData.SetRegExp(GenerateRegExp(RegExpFromSource(pattern), mData.mMatchCase, false)); |
| } |
| return TestRegExp(mData.mRegexpId, location); |
| } |