From 6f9d0d05fa3de541288af2443f26ae20a4b2c71e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=8Bfengzuowei?= Date: Wed, 27 Jul 2022 20:40:38 +0800 Subject: [PATCH 1/2] fix missing parentheses error in RegexPatterns.IpDPattern and RegexPatterns.IpEPattern --- src/Shared/HandyControl_Shared/Tools/RegexPatterns.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Shared/HandyControl_Shared/Tools/RegexPatterns.cs b/src/Shared/HandyControl_Shared/Tools/RegexPatterns.cs index b01ecb95f..9aa7c89a1 100644 --- a/src/Shared/HandyControl_Shared/Tools/RegexPatterns.cs +++ b/src/Shared/HandyControl_Shared/Tools/RegexPatterns.cs @@ -56,7 +56,7 @@ public sealed class RegexPatterns /// D类IP正则匹配 /// 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)$"; @@ -65,7 +65,7 @@ public sealed class RegexPatterns /// E类IP正则匹配 /// 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)$"; @@ -147,4 +147,4 @@ public sealed class RegexPatterns /// /// public object GetValue(string propertyName) => GetType().GetField(propertyName).GetValue(null); -} +} \ No newline at end of file From 2a1ac8bd6c945ad57324ddd9e81a3ad5c72e5a47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=8Bfengzuowei?= Date: Wed, 27 Jul 2022 20:46:59 +0800 Subject: [PATCH 2/2] rollback extra change --- src/Shared/HandyControl_Shared/Tools/RegexPatterns.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Shared/HandyControl_Shared/Tools/RegexPatterns.cs b/src/Shared/HandyControl_Shared/Tools/RegexPatterns.cs index 9aa7c89a1..bf409ad58 100644 --- a/src/Shared/HandyControl_Shared/Tools/RegexPatterns.cs +++ b/src/Shared/HandyControl_Shared/Tools/RegexPatterns.cs @@ -147,4 +147,4 @@ public sealed class RegexPatterns /// /// public object GetValue(string propertyName) => GetType().GetField(propertyName).GetValue(null); -} \ No newline at end of file +}