ABC-173: introduce Normalize(Username|Email) (#8183)
This centralizes the source of truth on the rules for username / email processing instead of scattering `strings.ToLower` invocations.
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
aaccb1226e
Коммит
d5d1834c04
@@ -52,7 +52,7 @@ func (me *Compliance) PreSave() {
|
||||
}
|
||||
|
||||
me.Count = 0
|
||||
me.Emails = strings.ToLower(me.Emails)
|
||||
me.Emails = NormalizeEmail(me.Emails)
|
||||
me.Keywords = strings.ToLower(me.Keywords)
|
||||
|
||||
me.CreateAt = GetMillis()
|
||||
|
||||
Ссылка в новой задаче
Block a user