Fix regexp escaping.
No idea why, but I had this case logged in the console.
[jan] Fix JS error when using regexp characters in search string.