match whole string
This commit is contained in:
@@ -101,7 +101,10 @@ public class ApiServer(string apiUrl) : IApiServer
|
||||
}
|
||||
}
|
||||
if (useRegEx)
|
||||
{
|
||||
url = url.Replace(".", "\\."); // Escape special characters
|
||||
url = $"^{url}$"; // Define start and end of line (matches whole string)
|
||||
}
|
||||
|
||||
// Add handler
|
||||
Log.InfoFormat("Added handler for {0}", attribute.Route);
|
||||
|
||||
Reference in New Issue
Block a user