Skip to content

Commit 541bb68

Browse files
committed
fix: #164 - Invalid regular expression
1 parent a581445 commit 541bb68

File tree

3 files changed

+708
-708
lines changed

3 files changed

+708
-708
lines changed

dist/js/multiselect.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* @license
33
*
4-
* Multiselect v2.5.1
4+
* Multiselect v2.5.2
55
* http://crlcu.github.io/multiselect/
66
*
77
* Copyright (c) 2016-2018 Adrian Crisan
@@ -805,7 +805,7 @@ if (typeof jQuery === 'undefined') {
805805
};
806806

807807
$.expr[":"].search = function(elem, index, meta) {
808-
var regex = new RegExp(meta[3], "i");
808+
var regex = new RegExp(meta[3].replace(/([^a-zA-Z0-9])/g, "\\$1"), "i");
809809

810810
return $(elem).text().match(regex);
811811
}

0 commit comments

Comments
 (0)