Skip to content

Commit

Permalink
Merge pull request #1225 from infchaos/fixbug_fix_missing_parentheses…
Browse files Browse the repository at this point in the history
…_error_in_RegexPatterns

fix missing parentheses error in RegexPatterns.IpDPattern and RegexPatterns.IpEPattern
  • Loading branch information
NaBian authored Sep 28, 2023
2 parents 1a15327 + 2a1ac8b commit 475a760
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Shared/HandyControl_Shared/Tools/RegexPatterns.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public sealed class RegexPatterns
/// D类IP正则匹配
/// </summary>
public const string IpDPattern =
@"^(22[4-9]|23\d\."
@"^(22[4-9]|23\d)\."
+ @"(25[0-5]|2[0-4]\d|1\d{2}|[1-9]?\d)\."
+ @"(25[0-5]|2[0-4]\d|1\d{2}|[1-9]?\d)\."
+ @"(25[0-5]|2[0-4]\d|1\d{2}|[1-9]?\d)$";
Expand All @@ -65,7 +65,7 @@ public sealed class RegexPatterns
/// E类IP正则匹配
/// </summary>
public const string IpEPattern =
@"^(25[0-5]|24\d\."
@"^(25[0-5]|24\d)\."
+ @"(25[0-5]|2[0-4]\d|1\d{2}|[1-9]?\d)\."
+ @"(25[0-5]|2[0-4]\d|1\d{2}|[1-9]?\d)\."
+ @"(25[0-5]|2[0-4]\d|1\d{2}|[1-9]?\d)$";
Expand Down

0 comments on commit 475a760

Please sign in to comment.