Skip to content

Commit

Permalink
修改用户名正则
Browse files Browse the repository at this point in the history
  • Loading branch information
xucongli1989 committed Sep 3, 2019
1 parent d0e35cb commit 204e657
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Binary file modified XCLNetTools.2.8.3.nupkg
Binary file not shown.
Binary file added XCLNetTools.2.8.4.nupkg
Binary file not shown.
4 changes: 2 additions & 2 deletions XCLNetTools/Common/Consts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,9 @@ public static class Consts
#region 用户名

/// <summary>
/// 用户名(3-10位的汉字+字母+数字+下划线)(忽略大小写)
/// 用户名(3-10位字母或数字组合)(忽略大小写)
/// </summary>
public static readonly Regex RegUserName = new Regex("^[\u4e00-\u9fa5_a-zA-Z0-9]{3,10}$", RegexOptions.IgnoreCase);
public static readonly Regex RegUserName = new Regex("^[a-zA-Z0-9]{3,10}$", RegexOptions.IgnoreCase);

#endregion 用户名
}
Expand Down
4 changes: 2 additions & 2 deletions XCLNetTools/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@
//
// 可以指定所有这些值,也可以使用“内部版本号”和“修订号”的默认值,
// 方法是按如下所示使用“*”:
[assembly: AssemblyVersion("2.8.3")]
[assembly: AssemblyFileVersion("2.8.3")]
[assembly: AssemblyVersion("2.8.4")]
[assembly: AssemblyFileVersion("2.8.4")]

0 comments on commit 204e657

Please sign in to comment.