Fixing autocomplete RegExp