fix inverted condition
This commit is contained in:
@@ -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%]+";
|
||||
|
||||
Reference in New Issue
Block a user