From 67a2ba7feb3576913dc2df2bce8ccc9d87840843 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期一, 12 一月 2026 11:26:38 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_scripts

---
 Main/Utility/UIHelper.cs |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/Main/Utility/UIHelper.cs b/Main/Utility/UIHelper.cs
index 8b6c868..e685d0d 100644
--- a/Main/Utility/UIHelper.cs
+++ b/Main/Utility/UIHelper.cs
@@ -335,6 +335,8 @@
         }
     }
 
+
+    // 鍙栧悕楠岃瘉
     static Regex s_SpecialCharacterRegex = new Regex("[()锛堬級@!#$%^&*[]|_]");
     static Regex s_AsciiCharacterRegex = new Regex("[\x00-\x1F]|[\x21-\x2F]|[\x3A-\x40]|[\x5B-\x60]|[\x7B-\x7E]");
     public static bool HasSpecialCharac(string str)
@@ -350,6 +352,17 @@
         return false;
     }
 
+    //鑱婂ぉ
+    static Regex s_AsciiCharacterRegexChat = new Regex("[\x00-\x1F]");
+    public static bool HasSpecCheckChat(string str)
+    {
+        if (s_AsciiCharacterRegexChat.IsMatch(str))
+        {
+            return true;
+        }
+        return false;
+    }
+
     // 妫�鏌ュ瓧绗︿覆鏄笉鏄函鏁存暟
     public static bool IsNumeric(string input)
     {

--
Gitblit v1.8.0