Fixed bug where default selection highlighting would be cleared.
Fix lint warnings
Escaping regexp characters in the search text.