Skip to content

Commit

Permalink
Filter: Update select2 regexp. See #1497
Browse files Browse the repository at this point in the history
Thanks @sthkn!
  • Loading branch information
Mottie committed Mar 22, 2019
1 parent 5479338 commit 6f28ac6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/widgets/widget-filter-formatter-select2.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 6f28ac6

Please sign in to comment.