aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Models/Validation
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-02-29 17:29:57 +0800
committercrupest <crupest@outlook.com>2020-02-29 17:29:57 +0800
commit668459f88fdef5f385759e53ee7f5206131da98b (patch)
tree9cbe0f8f6e6be22f66893b666ca537c0aebf268b /Timeline/Models/Validation
parent75c070eabc2c577facf5f17e59bd2ac3a80d2749 (diff)
downloadtimeline-668459f88fdef5f385759e53ee7f5206131da98b.tar.gz
timeline-668459f88fdef5f385759e53ee7f5206131da98b.tar.bz2
timeline-668459f88fdef5f385759e53ee7f5206131da98b.zip
Guess what, Chinese character is also a "letter". So no need to change code. Just add some tests.
Diffstat (limited to 'Timeline/Models/Validation')
-rw-r--r--Timeline/Models/Validation/NameValidator.cs2
1 files changed, 1 insertions, 1 deletions
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);
}