| Index: lib/matcher.js |
| =================================================================== |
| --- a/lib/matcher.js |
| +++ b/lib/matcher.js |
| @@ -157,16 +157,19 @@ |
| return rule; |
| }, |
| add: function(filter) |
| { |
| if (filter.text in this._rules) |
| return; |
| + if (!filter.regexpSource) // Regular expressions aren't supported |
|
Felix Dahlke
2012/11/14 12:45:26
So it's a regular expression if regexpSource is fa
Wladimir Palant
2012/11/14 13:25:30
Yes - for raw regexps we calculate the regexp prop
|
| + return; |
| + |
| var rule = this._generateRule(filter); |
| opera.extension.urlfilter[rule.type].add(rule.text, rule.options); |
| this._rules[filter.text] = rule; |
| }, |
| remove: function(filter) |
| { |
| if (!(filter.text in this._rules)) |