From b925eb4d83b98e8cc18412728a2e1d6e8b8bc995 Mon Sep 17 00:00:00 2001 From: Jessie Date: Thu, 22 Dec 2022 16:34:56 -0700 Subject: [PATCH] fix: NickHandler.nickreplace replaces nick items without stripping input string. --- evennia/typeclasses/attributes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evennia/typeclasses/attributes.py b/evennia/typeclasses/attributes.py index ca72d1332c..709dcdc8dd 100644 --- a/evennia/typeclasses/attributes.py +++ b/evennia/typeclasses/attributes.py @@ -1737,7 +1737,7 @@ class NickHandler(AttributeHandler): regex = re.compile(nick_regex, re.I + re.DOTALL + re.U) 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: break return raw_string