diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-10-20 20:20:20 -0500 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2021-10-20 20:20:20 -0500 |
| commit | 42c83ed537f4cadd56d343ff83898ddfff52686d (patch) | |
| tree | 3aeb8ca331b2053eec42fe1cac4550237d37009b /src | |
| parent | c30b3ade7a1989df944ab2f1f9214ccdf173af27 (diff) | |
| download | slskd-42c83ed537f4cadd56d343ff83898ddfff52686d.tar.gz | |
tweak regex
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Options.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slskd/Options.cs b/src/slskd/Options.cs index fc56ece7..e172db41 100644 --- a/src/slskd/Options.cs +++ b/src/slskd/Options.cs @@ -310,7 +310,7 @@ namespace slskd bool IsRoot((string Raw, string Mask, string Alias, string Path) share) => share.Path == "/" || share.Path == "\\" || Path.GetPathRoot(share.Path) == share.Path; // starts with '/', 'X:\', or '\\' - bool IsAbsolutePath(string share) => Regex.IsMatch(share.ToLocalOSPath(), @"^(\[.*\])?(\/|[a-zA-z]:\\|\\\\).*$"); + bool IsAbsolutePath(string share) => Regex.IsMatch(share.ToLocalOSPath(), @"^(\[.*\])?(\/|[a-zA-Z]:\\|\\\\).*$"); var relativePaths = Shared.Where(share => !IsAbsolutePath(share)); foreach (var relativePath in relativePaths) |
