summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobi Oetiker <tobi@oetiker.ch>2008-01-22 16:46:41 +0100
committerTobi Oetiker <tobi@oetiker.ch>2008-01-22 16:46:41 +0100
commitaeb75494086a98101cdf22ba3dc6767cb03939a5 (patch)
tree79e2f3517a7475689ef67ce0cb1d3a25f1b5e8ae
parent044a430a2c453780113aec59e37ee5160d777b0a (diff)
downloadsmokeping-aeb75494086a98101cdf22ba3dc6767cb03939a5.tar.gz
smokeping-aeb75494086a98101cdf22ba3dc6767cb03939a5.tar.xz
ignore case when searching
-rw-r--r--lib/Smokeping.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Smokeping.pm b/lib/Smokeping.pm
index 2c1a96b..71fd34f 100644
--- a/lib/Smokeping.pm
+++ b/lib/Smokeping.pm
@@ -638,7 +638,7 @@ sub target_menu($$$$;$){
};
if ($filter){
- if (($menu and $menu =~ /$filter/) or ($title and $title =~ /$filter/)){
+ if (($menu and $menu =~ /$filter/i) or ($title and $title =~ /$filter/i)){
push @matches, ["$path$key$suffix",$menu,$class];
};
push @matches, target_menu($tree->{$key}, $open, "$path$key.",$filter, $suffix);