Skip to content
This repository was archived by the owner on Nov 15, 2017. It is now read-only.

Commit 6ecd9d1

Browse files
committed
this fixes #260
1 parent f5d92a9 commit 6ecd9d1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

js/abp-hide-filters.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,15 @@ FilterParser.prototype.parse = function(s) {
204204
this.anchor = matches[2];
205205
this.suffix = matches[3];
206206

207+
// 2014-05-23:
208+
// https://github.com/gorhill/httpswitchboard/issues/260
209+
// Any sequence of `#` longer than two means the line is not a valid
210+
// cosmetic filter.
211+
if ( this.suffix.indexOf('##') >= 0 ) {
212+
this.invalid = true;
213+
return this;
214+
}
215+
207216
this.filterType = this.anchor.charAt(1);
208217
if ( this.prefix !== '' ) {
209218
this.hostnames = this.prefix.split(/\s*,\s*/);

0 commit comments

Comments
 (0)