diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-05-31 14:52:50 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2026-05-31 14:52:50 -0500 |
| commit | 3003f80c16af1d551b9d6e484c566c7d69c061a9 (patch) | |
| tree | 76be10eea02fc8ac6b3578ac3b0a06ad5bca749d /src | |
| parent | bebeb114426e717596b1cf485e358eae65cb08e0 (diff) | |
| download | slskd-3003f80c16af1d551b9d6e484c566c7d69c061a9.tar.gz | |
make slskqt regex slash optional
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Common/FileSafety.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slskd/Common/FileSafety.cs b/src/slskd/Common/FileSafety.cs index dcdaa00a..479f7834 100644 --- a/src/slskd/Common/FileSafety.cs +++ b/src/slskd/Common/FileSafety.cs @@ -62,7 +62,7 @@ public static class FileSafety private static readonly Regex DriveRootRegex = new(@"^[a-zA-Z]:[/\\]?", RegexOptions.Compiled); // C: or C:\ private static readonly Regex UncRootRegex = new(@"^[/\\]{2}[^/\\]+[/\\]?", RegexOptions.Compiled); // \\server[\] or //server[/], any slash variants - private static readonly Regex SoulseekQtRootRegex = new(@"^@@[a-zA-Z0-9]{5,}[\/\\]", RegexOptions.Compiled); // @@abcde[\|/], a Soulseek Qt share prefix + private static readonly Regex SoulseekQtRootRegex = new(@"^@@[a-zA-Z0-9]{5,}[\/\\]?", RegexOptions.Compiled); // @@abcde[\|/], a Soulseek Qt share prefix /// <summary> /// An alternative to <see cref="Path.Combine(string, string)"/> that disallows rooted segments in the second or |
