Browse Source

Very rarely used regex, do not compile

tags/3.4.1
noisyfox 8 years ago
parent
commit
b7b92a4af9
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      shadowsocks-csharp/Model/Server.cs

+ 2
- 3
shadowsocks-csharp/Model/Server.cs View File

@@ -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("^((?<method>.+?)(?<auth>-auth)??:(?<password>.*)@(?<hostname>.+?)" +
":(?<port>\\d+?))$", RegexOptions.Compiled | RegexOptions.IgnoreCase);
":(?<port>\\d+?))$", RegexOptions.IgnoreCase);
private const int DefaultServerTimeoutSec = 5;
public const int MaxServerTimeoutSec = 20;


Loading…
Cancel
Save