mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-23 19:22:40 +01:00
bashfaq/bashpf: Quotemeta $query
This commit is contained in:
parent
b9b1259e93
commit
84d9399ceb
2
modules/bashfaq.pl
vendored
2
modules/bashfaq.pl
vendored
@ -29,7 +29,7 @@ if (exists $faq{$query}) {
|
||||
$match = $query;
|
||||
} else {
|
||||
foreach my $key (keys %faq) {
|
||||
if ($faq{$key} =~ /$query/i) {
|
||||
if ($faq{$key} =~ /\Q$query\E/i) {
|
||||
$match = $key;
|
||||
last;
|
||||
}
|
||||
|
2
modules/bashpf.pl
vendored
2
modules/bashpf.pl
vendored
@ -29,7 +29,7 @@ if (exists $pf{$query}) {
|
||||
$match = $query;
|
||||
} else {
|
||||
foreach my $key (keys %pf) {
|
||||
if ($pf{$key} =~ /$query/i) {
|
||||
if ($pf{$key} =~ /\Q$query\E/i) {
|
||||
$match = $key;
|
||||
last;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user