summaryrefslogtreecommitdiff
path: root/internal/util/regexes.go
diff options
context:
space:
mode:
authorLibravatar tsmethurst <tobi.smethurst@klarrio.com>2021-06-27 13:58:59 +0200
committerLibravatar tsmethurst <tobi.smethurst@klarrio.com>2021-06-27 13:58:59 +0200
commit869a6c111cdd75536f283ee52d0717f4682a706c (patch)
tree62295946970f3405e39a10f9ed0a5878d828ca42 /internal/util/regexes.go
parentfix the annoying infinite handshake bug (tested) (#69) (diff)
downloadgotosocial-869a6c111cdd75536f283ee52d0717f4682a706c.tar.xz
Go fmt
Diffstat (limited to 'internal/util/regexes.go')
-rw-r--r--internal/util/regexes.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/util/regexes.go b/internal/util/regexes.go
index 13c3ce3ef..25d90417c 100644
--- a/internal/util/regexes.go
+++ b/internal/util/regexes.go
@@ -61,7 +61,7 @@ var (
userPathRegex = regexp.MustCompile(userPathRegexString)
userPublicKeyPathRegexString = fmt.Sprintf(`^?/%s/(%s)/%s`, UsersPath, usernameRegexString, PublicKeyPath)
- userPublicKeyPathRegex = regexp.MustCompile(userPublicKeyPathRegexString)
+ userPublicKeyPathRegex = regexp.MustCompile(userPublicKeyPathRegexString)
inboxPathRegexString = fmt.Sprintf(`^/?%s/(%s)/%s$`, UsersPath, usernameRegexString, InboxPath)
// inboxPathRegex parses a path that validates and captures the username part from eg /users/example_username/inbox