agarzola / jQueryAutocompletePlugin

Jörn Zaefferer’s (now deprecated) jQuery plugin, with tweaks.
282 stars 151 forks source link

matchContains = "word" is not working with international codings #28

Open akolpakov opened 12 years ago

akolpakov commented 12 years ago

if (options.matchContains == "word"){ i = s.toLowerCase().search("\b" + sub.toLowerCase()); }

this part of code is not working properly. Regexp symbol \b does not support encodings except ascii.