mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2025-02-03 12:28:31 +00:00
Shorter regex in escapeRegExChars
Removed unnecessary backslash characters. Slash character is not a regex special character and does not need to be escaped.
This commit is contained in:
parent
b45b4b1489
commit
22e8d7b1a5
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user