From dfd9e8f92f2b19ef5eb1107805dafede62032118 Mon Sep 17 00:00:00 2001 From: Abdulrahman Alsaleh Date: Wed, 4 May 2016 00:07:45 +0300 Subject: [PATCH] Enable regex filter by omitting automatic escaping --- lib/filters/console_spec_filter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}