summaryrefslogtreecommitdiff
path: root/internal/util/regexes.go
diff options
context:
space:
mode:
authorLibravatar tsmethurst <tobi.smethurst@protonmail.com>2021-08-30 20:21:04 +0200
committerLibravatar tsmethurst <tobi.smethurst@protonmail.com>2021-09-01 11:11:26 +0200
commitfffff93b754794c9709413adb2d016c6245f205e (patch)
tree0f5c7d37decbc56e7368eaea466ca9b58e071655 /internal/util/regexes.go
parentmore work on struct validation (diff)
downloadgotosocial-fffff93b754794c9709413adb2d016c6245f205e.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 d3a42d1fc..36af9e7aa 100644
--- a/internal/util/regexes.go
+++ b/internal/util/regexes.go
@@ -90,7 +90,7 @@ var (
followPathRegex = regexp.MustCompile(followPathRegexString)
ulidRegexString = `[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}`
- ulidRegex = regexp.MustCompile(fmt.Sprintf(`^%s$`, ulidRegexString))
+ ulidRegex = regexp.MustCompile(fmt.Sprintf(`^%s$`, ulidRegexString))
likedPathRegexString = fmt.Sprintf(`^/?%s/(%s)/%s$`, UsersPath, usernameRegexString, LikedPath)
// likedPathRegex parses a path that validates and captures the username part from eg /users/example_username/liked