Filter: Update select2 regexp. See #1497

Thanks @sthkn!
This commit is contained in:
Rob Garrison 2019-03-17 20:49:31 -05:00
parent 547933815a
commit 6f28ac6c01

View File

@ -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');