Fix import validation issue (#156)
This commit is contained in:
parent
a95d12639d
commit
e455bd6d12
@ -269,7 +269,7 @@ namespace PluralKit.Core
|
|||||||
!DisplayName.IsLongerThan(Limits.MaxMemberNameLength) &&
|
!DisplayName.IsLongerThan(Limits.MaxMemberNameLength) &&
|
||||||
!Description.IsLongerThan(Limits.MaxDescriptionLength) &&
|
!Description.IsLongerThan(Limits.MaxDescriptionLength) &&
|
||||||
!Pronouns.IsLongerThan(Limits.MaxPronounsLength) &&
|
!Pronouns.IsLongerThan(Limits.MaxPronounsLength) &&
|
||||||
(Color == null || Regex.IsMatch(Color, "[0-9a-f]{6}")) &&
|
(Color == null || Regex.IsMatch(Color, "[0-9a-fA-F]{6}")) &&
|
||||||
(Birthday == null || DateTimeFormats.DateExportFormat.Parse(Birthday).Success) &&
|
(Birthday == null || DateTimeFormats.DateExportFormat.Parse(Birthday).Success) &&
|
||||||
|
|
||||||
// Sanity checks
|
// Sanity checks
|
||||||
|
Loading…
Reference in New Issue
Block a user