Skip to content

Commit

Permalink
Enable regex filter by omitting automatic escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
aaalsaleh committed May 3, 2016
1 parent 856ef71 commit dfd9e8f
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 dfd9e8f

Please sign in to comment.