1、关键字长度限制过滤 修改为 连续的字符文本满足条件才算。中间有符号、空格、表情、控制字符等间隔的都不算

This commit is contained in:
2025-05-23 15:31:08 +08:00
parent 8a1d028f3e
commit a9a34dcc0f
4 changed files with 16 additions and 7 deletions

View File

@ -0,0 +1,9 @@
Public Class StringHelper
' 判断是否全字母数字Unicode 支持)
Public Shared Function IsAllLetterOrDigit(input As String) As Boolean
For Each ch As Char In input
If Not Char.IsLetterOrDigit(ch) Then Return False
Next
Return True
End Function
End Class