diff --git a/Pilz.Net/Api/ApiServer.cs b/Pilz.Net/Api/ApiServer.cs
index 2fcfe44..8c2aed9 100644
--- a/Pilz.Net/Api/ApiServer.cs
+++ b/Pilz.Net/Api/ApiServer.cs
@@ -268,7 +268,7 @@ public class ApiServer : IApiServer
if (endBreacket != -1)
{
var name = url.Substring(nextBreacket + 1, endBreacket - nextBreacket - 1);
- const string regex = "[A-Za-z0-9%]+";
+ const string regex = "[A-Za-z0-9%_.-]+";
url = url.Replace(url.Substring(nextBreacket, endBreacket - nextBreacket + 1), regex);
var index = url[..(nextBreacket + 1)].Split('/').Length - 1;
diff --git a/Pilz.Net/Pilz.Net.csproj b/Pilz.Net/Pilz.Net.csproj
index 8beab34..6d4fe02 100644
--- a/Pilz.Net/Pilz.Net.csproj
+++ b/Pilz.Net/Pilz.Net.csproj
@@ -8,7 +8,7 @@
- 2.10.1
+ 2.10.2