mirror of
https://github.com/fosrl/pangolin.git
synced 2025-12-13 19:47:45 +00:00
allow root path
This commit is contained in:
@@ -9,6 +9,10 @@ export function isValidIP(ip: string): boolean {
|
||||
}
|
||||
|
||||
export function isValidUrlGlobPattern(pattern: string): boolean {
|
||||
if (pattern === "/") {
|
||||
return true;
|
||||
}
|
||||
|
||||
// Remove leading slash if present
|
||||
pattern = pattern.startsWith("/") ? pattern.slice(1) : pattern;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user