Browse Source

capture non-whitespace chars for ss url tag

tags/4.0.1
Syrone Wong 7 years ago
parent
commit
54335d4889
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      shadowsocks-csharp/Model/Server.cs

+ 1
- 1
shadowsocks-csharp/Model/Server.cs View File

@@ -11,7 +11,7 @@ namespace Shadowsocks.Model
public class Server
{
public static readonly Regex
UrlFinder = new Regex(@"ss://(?<base64>[A-Za-z0-9+-/=_]+)(?:#(?<tag>.+))?", RegexOptions.IgnoreCase),
UrlFinder = new Regex(@"ss://(?<base64>[A-Za-z0-9+-/=_]+)(?:#(?<tag>\S+))?", RegexOptions.IgnoreCase),
DetailsParser = new Regex(@"^((?<method>.+?):(?<password>.*)@(?<hostname>.+?):(?<port>\d+?))$", RegexOptions.IgnoreCase);
private const int DefaultServerTimeoutSec = 5;


Loading…
Cancel
Save