Skip to content

Commit

Permalink
fix: #164 - Invalid regular expression
Browse files Browse the repository at this point in the history
  • Loading branch information
crlcu committed Jul 10, 2018
1 parent a581445 commit 541bb68
Show file tree
Hide file tree
Showing 3 changed files with 708 additions and 708 deletions.
4 changes: 2 additions & 2 deletions dist/js/multiselect.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @license
*
* Multiselect v2.5.1
* Multiselect v2.5.2
* http://crlcu.github.io/multiselect/
*
* Copyright (c) 2016-2018 Adrian Crisan
Expand Down Expand Up @@ -805,7 +805,7 @@ if (typeof jQuery === 'undefined') {
};

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

return $(elem).text().match(regex);
}
Expand Down
Loading

0 comments on commit 541bb68

Please sign in to comment.