From b43b480d3c50b3f12cf01750c0951ece1fe70119 Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 29 Feb 2020 17:29:57 +0800 Subject: Guess what, Chinese character is also a "letter". So no need to change code. Just add some tests. --- Timeline/Models/Validation/NameValidator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Timeline/Models') diff --git a/Timeline/Models/Validation/NameValidator.cs b/Timeline/Models/Validation/NameValidator.cs index 8db10ebd..dec2b872 100644 --- a/Timeline/Models/Validation/NameValidator.cs +++ b/Timeline/Models/Validation/NameValidator.cs @@ -14,7 +14,7 @@ namespace Timeline.Models.Validation return (false, MessageEmptyString); } - if (value.Length > 26) + if (value.Length > MaxLength) { return (false, MessageTooLong); } -- cgit v1.2.3