Przeglądaj źródła

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

Hakim El Hattab 1 rok temu
rodzic
commit
339dc709da

+ 1 - 1
plugin/search/plugin.js

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

Plik diff jest za duży
+ 0 - 0
plugin/search/search.esm.js


Plik diff jest za duży
+ 0 - 0
plugin/search/search.js


Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików