improve regex
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user