diff --git a/src/jquery.autocomplete.js b/src/jquery.autocomplete.js index 2fe14a9..d120248 100644 --- a/src/jquery.autocomplete.js +++ b/src/jquery.autocomplete.js @@ -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');