Consider "" to be an invalid path (#1847)
This commit is contained in:
+1
-1
@@ -87,7 +87,7 @@ export function isValidName(name: string): boolean {
|
||||
export function isValidPath(path: string): path is Path {
|
||||
const ref = parseToRef(path);
|
||||
|
||||
return !!ref && ref.path === path;
|
||||
return !!ref && ref.path === path && path !== "";
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user