From 6f28ac6c0120124adfbb11d519ae3bfd92837d4e Mon Sep 17 00:00:00 2001 From: Rob Garrison Date: Sun, 17 Mar 2019 20:49:31 -0500 Subject: [PATCH] Filter: Update select2 regexp. See #1497 Thanks @sthkn! --- js/widgets/widget-filter-formatter-select2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');