JustGoscha / allmighty-autocomplete

Simple to use autocomplete directive in a module for AngularJs!
MIT License
392 stars 232 forks source link

escape special characters when matching highlight string #113

Open IliasDeros opened 8 years ago

IliasDeros commented 8 years ago

Entering a "(" or "[" would throw a javascript error. This fix allows matching strings with characters that would otherwise be parsed as regular expression matchers.