Ensure paths are trimmed

This commit is contained in:
mtkennerly 2022-08-20 02:54:47 +08:00
parent faf32b040a
commit ec0a463a50
No known key found for this signature in database
GPG key ID: E764BE00BE6E6408
2 changed files with 2 additions and 2 deletions

View file

@ -324,7 +324,7 @@ function parsePath(path: string): [string, PathType] {
path = path.slice(0, path.length - 2);
}
return [path, pathType];
return [path.trim(), pathType];
}
export function pathIsTooBroad(path: string): boolean {