minor modified some patterns

This commit is contained in:
chenjie02_cd committed 2021-07-04 14:48:54 +08:00
1 parent 8e912df45e
commit da040813d9
1 file changed
+2 -2
@@ -84,7 +84,7 @@
/// <summary>
/// 数字正则匹配
/// </summary>
public const string NumberPattern = @"^\d$";
public const string NumberPattern = @"^\d+$";
/// <summary>
/// 计算性质数字正则匹配
@@ -104,7 +104,7 @@
/// <summary>
/// 整数正则匹配
/// </summary>
public const string IntPattern = @"^-?[1-9]\d*$";
public const string IntPattern = @"^-?[1-9]\d*|0$";
/// <summary>
/// 非负整数正则匹配