From 53507ac2a32a785b5467b1e58d033780d8e02693 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Sun, 29 Aug 2021 12:03:08 +0200 Subject: Mention fixup (#167) * rework mention creation a bit * rework mention creation a bit * tidy up status dereferencing * start adding tests for dereferencing * fixups * fix * review changes --- internal/util/regexes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/util/regexes.go') diff --git a/internal/util/regexes.go b/internal/util/regexes.go index c03fd878c..88212fc43 100644 --- a/internal/util/regexes.go +++ b/internal/util/regexes.go @@ -30,7 +30,7 @@ const ( ) var ( - mentionNameRegexString = `^@(\w+)(?:@([a-zA-Z0-9_\-\.]+)?)$` + mentionNameRegexString = `^@(\w+)(?:@([a-zA-Z0-9_\-\.:]+)?)$` // mention name regex captures the username and domain part from a mention string // such as @whatever_user@example.org, returning whatever_user and example.org (without the @ symbols) mentionNameRegex = regexp.MustCompile(mentionNameRegexString) -- cgit v1.2.3