mirror of
https://github.com/fosrl/pangolin.git
synced 2025-06-21 20:58:57 +02:00
allow root path
This commit is contained in:
parent
e9cc48a3ae
commit
caded23b51
4 changed files with 96 additions and 12 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue