Fix user mentions for usernames with a dash
This commit is contained in:
parent
0bb9ef9657
commit
e93dff9824
|
@ -29,7 +29,7 @@ StatusChange = namedtuple("StatusChange", [
|
||||||
USER_MENTION_PATTERN = re.compile(r"""
|
USER_MENTION_PATTERN = re.compile(r"""
|
||||||
(?<![^\s(]) # No leading non-whitespace characters
|
(?<![^\s(]) # No leading non-whitespace characters
|
||||||
~ # Literal tilde
|
~ # Literal tilde
|
||||||
(\w+) # The username
|
([\w-]+) # The username
|
||||||
\b # Word boundary
|
\b # Word boundary
|
||||||
(?!/) # Not followed by slash, possible qualified ticket mention
|
(?!/) # Not followed by slash, possible qualified ticket mention
|
||||||
""", re.VERBOSE)
|
""", re.VERBOSE)
|
||||||
|
|
Loading…
Reference in New Issue