mirror of
https://github.com/Akkadius/glass-isc-dhcp.git
synced 2025-07-27 07:34:49 +02:00
Make grep filter follow non-regex related searches as well
This commit is contained in:
parent
187ffb5f0e
commit
7029c5e2e7
@ -26,10 +26,12 @@ function connect_websocket() {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(document.getElementById("grep_fitler").value){
|
var grep_value = document.getElementById("grep_fitler").value;
|
||||||
var matcher = new RegExp(document.getElementById("grep_fitler").value, "i");
|
|
||||||
|
if(grep_value){
|
||||||
|
var matcher = new RegExp(grep_value, "i");
|
||||||
var found = matcher.test(event.data);
|
var found = matcher.test(event.data);
|
||||||
if(!found){
|
if(!found && !event.data.includes(grep_value)){
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user