code
code copied to clipboard
Escape search term when not using Regex expression in global search
Fixes #1668 Fixes #1667
The search term was not being escaped when the search was not specified as using regex expressions (I think this is a regression?). This resulted in incorrect numbers of matches and the possibility of entering invalid regex expressions and the aborting of the search without warning or clearing the badges.