fix inverted condition

This commit is contained in:
2024-12-02 15:57:30 +01:00
parent 3fea994e93
commit 2bd241c7a9

View File

@@ -90,7 +90,7 @@ public class ApiServer(string apiUrl) : IApiServer
while (nextBreacket != -1)
{
var endBreacket = url.IndexOf('}', nextBreacket + 1);
if (endBreacket == -1)
if (endBreacket != -1)
{
var name = url.Substring(nextBreacket + 1, endBreacket - nextBreacket - 1);
const string regex = "[A-Za-z0-9%]+";