Skip to content

Commit

Permalink
Merge pull request #76 from aaalsaleh/master
Browse files Browse the repository at this point in the history
Enable regex filter by omitting automatic escaping
  • Loading branch information
Gregg Van Hove authored Sep 27, 2016
2 parents d1b5d51 + dfd9e8f commit df43829
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/filters/console_spec_filter.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
module.exports = exports = ConsoleSpecFilter;

function ConsoleSpecFilter(options) {
var filterString = options && options.filterString && options.filterString.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
var filterString = options && options.filterString;
var filterPattern = new RegExp(filterString);

this.matches = function(specName) {
return filterPattern.test(specName);
};
}
}

0 comments on commit df43829

Please sign in to comment.