From 11f5a0fdc22040748558a6fdee4a48ebbc193939 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期三, 12 十一月 2025 12:29:54 +0800
Subject: [PATCH] 0312 纯中文限制最多7个字,字是UTF8,一个字3个字节
---
Main/Utility/UIHelper.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Main/Utility/UIHelper.cs b/Main/Utility/UIHelper.cs
index bb0b2ad..63968b8 100644
--- a/Main/Utility/UIHelper.cs
+++ b/Main/Utility/UIHelper.cs
@@ -1308,7 +1308,7 @@
//bool pureChinese = Regex.IsMatch(name, "^[\u4e00-\u9fa5]+$");
//var chsCount = GetChsCount(name);
int length = Encoding.Default.GetBytes(name).Length;
- var maxlength = 14; //绾腑鏂囦笉寤鸿瓒呰繃7涓瓧
+ var maxlength = 21; //绾腑鏂囦笉寤鸿瓒呰繃7涓瓧
var minlength = 3;
if (length > maxlength)
{
--
Gitblit v1.8.0