2
0
mirror of https://github.com/devbridge/jQuery-Autocomplete.git synced 2024-12-23 03:18:55 +00:00

Merge pull request #510 from stonio/patch-4

Shorter RegEx in escapeRegExChars
This commit is contained in:
Tomas Kirda 2016-07-06 09:10:24 -05:00 committed by GitHub
commit 264198f171

View File

@ -29,7 +29,7 @@
utils = (function () {
return {
escapeRegExChars: function (value) {
return value.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
return value.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&");
},
createNode: function (containerClass) {
var div = document.createElement('div');