Unverified Commit cf1bde60 authored by IKEDA Soji's avatar IKEDA Soji Committed by GitHub
Browse files

Merge pull request #1385 from ikedas/issue-1377 by ikedas

blocklist sensitive to spurious whitespace (#1377)
parents 992a3133 7b374711
......@@ -1445,7 +1445,9 @@ sub do_search {
}
while (my $pattern = <$ifh>) {
next if $pattern =~ /\A\s*\z/ or $pattern =~ /\A[#;]/;
chomp $pattern;
$pattern =~ s/\A\s+//;
$pattern =~ s/\s+\z//;
$pattern =~ s/([^\w\x80-\xFF])/\\$1/g;
$pattern =~ s/\\\*/.*/;
if ($sender =~ /^$pattern$/i) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment