Autocomplete Dropping 'at' @ Sign in Email Addresses
My applicaiton uses jQuery autocomplete and I noticed that when I type an email address (e.g.
someone@somewhere.com) the autocomplete feature works up until I type in the "at" sign. As soon as I enter the @, the autocomplete stops working and the autocomplete suggestion box disappears.
When I looked into the issue further, I realized that the string from my input field that is passed along to my autocomplete look-up script is being cut off at the @ sign. In other words, I can type in
but the string that is passed along to the autocomplete look-up script is only
someone
I think it has something to do with the regular expresseions in the following line of code in the jquery-ui file, but I'm not sure.
return value.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "
\\$&");
Any ideas on how to get the autocomplete to contue to work when a user types an email address going past the @ sign?
Thanks in advance for any assistance.
- John