diff options
author | 2021-08-29 12:03:08 +0200 | |
---|---|---|
committer | 2021-08-29 12:03:08 +0200 | |
commit | 53507ac2a32a785b5467b1e58d033780d8e02693 (patch) | |
tree | 1c48ac9f5fc47e65450d53d8d26d0dee30753687 /internal/util/regexes.go | |
parent | Replace federating DB locks map, add a cleanup goroutine (#166) (diff) | |
download | gotosocial-53507ac2a32a785b5467b1e58d033780d8e02693.tar.xz |
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
Diffstat (limited to 'internal/util/regexes.go')
-rw-r--r-- | internal/util/regexes.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) |