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

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

No files matched your search

+1 -1
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");
}