$pre .= '*' unless $pre =~ /[\*\?\[]/o;
$pre = shellregex($pre);
$expr = "\$f1 =~ m{$pre}";
- $pre =~ s/\^//;
+ $pre =~ s/[\^\$]//g;
$hint = "m{\U$pre}";
}
if ($spotter) {
$expr .= " && " if $expr;
$spotter = shellregex($spotter);
- $expr .= "\$f4 =~ m{$spotter}";
+ $expr .= "\$f4 =~ m{\U$spotter}";
$hint .= " && " if $hint;
- $hint .= "m{$spotter}";
+ $spotter =~ s/[\^\$]//g;
+ $hint .= "m{\U$spotter}";
}
# qsl requests