Fix user mentions for usernames with a dash

This commit is contained in:
Dean Weaver 2022-06-14 16:05:10 -07:00 committed by Drew DeVault
parent 0bb9ef9657
commit e93dff9824
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ StatusChange = namedtuple("StatusChange", [
USER_MENTION_PATTERN = re.compile(r"""
(?<![^\s(]) # No leading non-whitespace characters
~ # Literal tilde
(\w+) # The username
([\w-]+) # The username
\b # Word boundary
(?!/) # Not followed by slash, possible qualified ticket mention
""", re.VERBOSE)