diff --git a/lib/filters/console_spec_filter.js b/lib/filters/console_spec_filter.js index e3cf6bd1..0b92ad9a 100644 --- a/lib/filters/console_spec_filter.js +++ b/lib/filters/console_spec_filter.js @@ -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); }; -} \ No newline at end of file +}