From 668459f88fdef5f385759e53ee7f5206131da98b 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/Validation') 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