Consider "" to be an invalid path (#1847)

This commit is contained in:
rktjmp
2026-02-21 17:55:23 +01:00
committed by GitHub
parent 3ddfab51e8
commit 472ff93416
+1 -1
View File
@@ -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 !== "";
}
/**