Ticket #2018 (closed bug: fixed)
Small bug in the autocomplete plugin
|Reported by:||ash||Owned by:|
There is a problem with the autocomplete plugin.
Take a look at
around line 510
The highlight function constructs a RegExp by concatinating strings, one of which is term. Term is entered by the client. If it contains special symbols like '(' - the constructor of the RegExp fails.
Workarounds: set another highlight function.
Fix: Escape the term string.
I am attaching a patch that works for me. There is a static regexp in there that can be optimized further.