Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Sympa
Commits
cf1bde60
Unverified
Commit
cf1bde60
authored
Apr 21, 2022
by
IKEDA Soji
Committed by
GitHub
Apr 21, 2022
Browse files
Merge pull request #1385 from ikedas/issue-1377 by ikedas
blocklist sensitive to spurious whitespace (#1377)
parents
992a3133
7b374711
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/Sympa/Scenario.pm
View file @
cf1bde60
...
...
@@ -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
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment