Skip to content

Commit

Permalink
Merge pull request #2221 from sopel-irc/7.x-adminchannel-regex
Browse files Browse the repository at this point in the history
adminchannel: fix unmatchable caret in regex
  • Loading branch information
dgw authored Dec 9, 2021
2 parents f48fbb1 + 21397c3 commit 7e60a03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sopel/modules/adminchannel.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def configureHostMask(mask):
if m is not None:
return '*!%s@%s' % (m.group(1), m.group(2))

m = re.match('^([^!@]+)!(^[!@]+)@?$', mask)
m = re.match('^([^!@]+)!([^!@]+)@?$', mask)
if m is not None:
return '%s!%s@*' % (m.group(1), m.group(2))

Expand Down

0 comments on commit 7e60a03

Please sign in to comment.