diff --git a/js/widgets/widget-filter-formatter-select2.js b/js/widgets/widget-filter-formatter-select2.js index a9104065..4a6816b6 100644 --- a/js/widgets/widget-filter-formatter-select2.js +++ b/js/widgets/widget-filter-formatter-select2.js @@ -65,7 +65,7 @@ v = v.join('\u0000'); } // escape special regex characters (http://stackoverflow.com/a/9310752/145346) - v = v.replace(/[-[\]{}()*+?.,/\\^$|#\s]/g, '\\$&'); + v = v.replace(/[-[\]{}()*+?.,/\\^$|#]/g, '\\$&'); // convert string back into an array if (arry) { v = v.split('\u0000');