mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2024-11-09 23:01:00 +00:00
fix getQuery return empty string:
when I input Chinese,the delimiter will equal value, and function getQuery return an empty string;
This commit is contained in:
parent
5f00f638f0
commit
094bb1b7fb
5
dist/jquery.autocomplete.js
vendored
5
dist/jquery.autocomplete.js
vendored
@ -508,6 +508,11 @@
|
||||
if (!delimiter) {
|
||||
return value;
|
||||
}
|
||||
|
||||
if( delimiter == value ){
|
||||
return $.trim(value)
|
||||
}
|
||||
|
||||
parts = value.split(delimiter);
|
||||
return $.trim(parts[parts.length - 1]);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user