aboutsummaryrefslogtreecommitdiffstats
path: root/models/db/name.go
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2024-12-21 00:11:38 +0800
committerGitHub <noreply@github.com>2024-12-20 16:11:38 +0000
commit1c9b022c4d9174c3a96fb323593241b19fc245aa (patch)
tree0f976f42e5437472d4c872579f46732fbd2d8242 /models/db/name.go
parent7580bd98c1c9c108500b0c295d5fb6aa057170d4 (diff)
downloadgitea-1c9b022c4d9174c3a96fb323593241b19fc245aa.tar.gz
gitea-1c9b022c4d9174c3a96fb323593241b19fc245aa.zip
Refactor db package and remove unnecessary `DumpTables` (#32930)
Diffstat (limited to 'models/db/name.go')
-rw-r--r--models/db/name.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/db/name.go b/models/db/name.go
index 51be33a8bc..55c9dffb6a 100644
--- a/models/db/name.go
+++ b/models/db/name.go
@@ -16,7 +16,7 @@ var (
// ErrNameEmpty name is empty error
ErrNameEmpty = util.SilentWrap{Message: "name is empty", Err: util.ErrInvalidArgument}
- // AlphaDashDotPattern characters prohibited in a user name (anything except A-Za-z0-9_.-)
+ // AlphaDashDotPattern characters prohibited in a username (anything except A-Za-z0-9_.-)
AlphaDashDotPattern = regexp.MustCompile(`[^\w-\.]`)
)