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

Commit

Permalink
this fixes #260
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed May 23, 2014
1 parent f5d92a9 commit 6ecd9d1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions js/abp-hide-filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,15 @@ FilterParser.prototype.parse = function(s) {
this.anchor = matches[2];
this.suffix = matches[3];

// 2014-05-23:
// https://github.com/gorhill/httpswitchboard/issues/260
// Any sequence of `#` longer than two means the line is not a valid
// cosmetic filter.
if ( this.suffix.indexOf('##') >= 0 ) {
this.invalid = true;
return this;
}

this.filterType = this.anchor.charAt(1);
if ( this.prefix !== '' ) {
this.hostnames = this.prefix.split(/\s*,\s*/);
Expand Down

0 comments on commit 6ecd9d1

Please sign in to comment.