From b7b92a4af92d9fe1d9b4955db622a905709949a5 Mon Sep 17 00:00:00 2001 From: noisyfox Date: Tue, 13 Dec 2016 20:47:39 +1100 Subject: [PATCH] Very rarely used regex, do not compile --- shadowsocks-csharp/Model/Server.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/shadowsocks-csharp/Model/Server.cs b/shadowsocks-csharp/Model/Server.cs index 77fedba8..694effe0 100755 --- a/shadowsocks-csharp/Model/Server.cs +++ b/shadowsocks-csharp/Model/Server.cs @@ -10,10 +10,9 @@ namespace Shadowsocks.Model public class Server { public static readonly Regex - UrlFinder = new Regex("^(?i)ss://([A-Za-z0-9+-/=_]+)(#(.+))?$", - RegexOptions.IgnoreCase | RegexOptions.Compiled), + UrlFinder = new Regex("^(?i)ss://([A-Za-z0-9+-/=_]+)(#(.+))?$", RegexOptions.IgnoreCase), DetailsParser = new Regex("^((?.+?)(?-auth)??:(?.*)@(?.+?)" + - ":(?\\d+?))$", RegexOptions.Compiled | RegexOptions.IgnoreCase); + ":(?\\d+?))$", RegexOptions.IgnoreCase); private const int DefaultServerTimeoutSec = 5; public const int MaxServerTimeoutSec = 20;