fix: NickHandler.nickreplace replaces nick items without stripping input string.
This commit is contained in:
parent
290475a9fe
commit
b925eb4d83
1 changed files with 1 additions and 1 deletions
|
|
@ -1737,7 +1737,7 @@ class NickHandler(AttributeHandler):
|
||||||
regex = re.compile(nick_regex, re.I + re.DOTALL + re.U)
|
regex = re.compile(nick_regex, re.I + re.DOTALL + re.U)
|
||||||
self._regex_cache[nick_regex] = regex
|
self._regex_cache[nick_regex] = regex
|
||||||
|
|
||||||
is_match, raw_string = parse_nick_template(raw_string.strip(), regex, template)
|
is_match, raw_string = parse_nick_template(raw_string, regex, template)
|
||||||
if is_match:
|
if is_match:
|
||||||
break
|
break
|
||||||
return raw_string
|
return raw_string
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue