diff options
| author | 2021-08-30 20:21:04 +0200 | |
|---|---|---|
| committer | 2021-08-30 20:21:04 +0200 | |
| commit | a530a33192f383d2a6709669eb01ed540d9266ca (patch) | |
| tree | ed02cd151180119f614d80962aef8431c5488ca3 /internal/util | |
| parent | more work on struct validation (diff) | |
| download | gotosocial-a530a33192f383d2a6709669eb01ed540d9266ca.tar.xz | |
go fmt
Diffstat (limited to 'internal/util')
| -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 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 |
