croby/jquery-autosuggest — pull request #1 by christianv (2011-12-28 18:08:48+00:00)
Title: Enable autosuggest for words containing parenthesis

When you currently use either "(" or ")" - parenthesis in a word that needs to be autosuggested, it results in an error message in the browser:

> unterminated parenthetical

or

> unmatched ) in regular expression

These errors occur on the following line:

> if(str.search(query) != -1 && values_input.val().search(","+data[num][opts.selectedValuesProp]+",") == -1){
...

The reason for this is that the parenthesis need to be escaped.