search plugin; allow searching for any character (was alphanum) #2331 #3532

This commit is contained in:
Hakim El Hattab
2023-11-23 14:03:47 +01:00
parent bbd0d3e4f7
commit 339dc709da
3 changed files with 3 additions and 3 deletions

View File

@@ -137,7 +137,7 @@ const Plugin = () => {
this.setRegex = function(input)
{
input = input.replace(/^[^\w]+|[^\w]+$/g, "").replace(/[^\w'-]+/g, "|");
input = input.trim().replace(/\s/g, "|");
matchRegex = new RegExp("(" + input + ")","i");
}