aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-05-31 14:52:50 -0500
committerJP Dillingham <jp@dillingham.me>2026-05-31 14:52:50 -0500
commit3003f80c16af1d551b9d6e484c566c7d69c061a9 (patch)
tree76be10eea02fc8ac6b3578ac3b0a06ad5bca749d /src
parentbebeb114426e717596b1cf485e358eae65cb08e0 (diff)
downloadslskd-3003f80c16af1d551b9d6e484c566c7d69c061a9.tar.gz
make slskqt regex slash optional
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Common/FileSafety.cs2
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