Skip to content

Commit

Permalink
Fix wildcard handling in get_hostmask_regex
Browse files Browse the repository at this point in the history
  • Loading branch information
ThiefMaster committed Oct 22, 2014
1 parent 0c4267b commit e3e26af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion willie/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ def format_time(db=None, config=None, zone=None, nick=None, channel=None,
def get_hostmask_regex(mask):
"""Return a compiled `re.RegexObject` for an IRC hostmask"""
mask = re.escape(mask)
mask.replace('\*', '.*')
mask = mask.replace(r'\*', '.*')
return re.compile(mask + '$', re.I)


Expand Down

0 comments on commit e3e26af

Please sign in to comment.