1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-25 19:58:36 +00:00

Refactor db package and remove unnecessary DumpTables (#32930)

This commit is contained in:
wxiaoguang
2024-12-21 00:11:38 +08:00
committed by GitHub
parent 7580bd98c1
commit 1c9b022c4d
10 changed files with 247 additions and 221 deletions

View File

@@ -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-\.]`)
)