File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -82,8 +82,8 @@ func TemplateDisplayNameValid(str string) error {
82
82
83
83
// UserRealNameValid returns whether the input string is a valid real user name.
84
84
func UserRealNameValid (str string ) error {
85
- if len (str ) > 64 {
86
- return xerrors .New ("must be <= 64 characters" )
85
+ if len (str ) > 128 {
86
+ return xerrors .New ("must be <= 128 characters" )
87
87
}
88
88
89
89
trimmed := strings .TrimSpace (str )
Original file line number Diff line number Diff line change @@ -224,6 +224,10 @@ func TestUserRealNameValid(t *testing.T) {
224
224
{"Mr Bean" , true },
225
225
{"Severus Snape" , true },
226
226
{"Prof. Albus Percival Wulfric Brian Dumbledore" , true },
227
+ {"Pablo Diego José Francisco de Paula Juan Nepomuceno María de los Remedios Cipriano de la Santísima Trinidad Ruiz y Picasso" , true },
228
+ {"Hector Ó hEochagáin" , true },
229
+ {"Małgorzata Kalinowska-Iszkowska" , true },
230
+ {"成龍" , true },
227
231
{". ." , true },
228
232
229
233
{"Lord Voldemort " , false },
You can’t perform that action at this time.
0 commit comments