aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-05-17 17:02:27 -0500
committerJP Dillingham <jp@dillingham.me>2026-05-17 17:02:27 -0500
commit6f0d9682fde688cf1fd8d3f330aca71616f28a9f (patch)
treec7e6e25f90323fdd0f3c3bfcbf1ea5e64d94ba1f
parent886d1edd885dd569c315f6ef20b066fa130971eb (diff)
downloadslskd-6f0d9682fde688cf1fd8d3f330aca71616f28a9f.tar.gz
capture alias up to the first closing square bracket
-rw-r--r--src/slskd/Core/Options.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs
index f952f014..83e534a1 100644
--- a/src/slskd/Core/Options.cs
+++ b/src/slskd/Core/Options.cs
@@ -853,7 +853,7 @@ namespace slskd
(string Raw, string Alias, string Path) Digest(string share)
{
- var matches = Regex.Matches(share, @"^(!|-){0,1}\[(.*)\](.*)$");
+ var matches = Regex.Matches(share, @"^(!|-){0,1}\[([^\]]*)\](.*)$");
if (matches.Any())
{