There was an error while loading. Please reload this page.
1 parent a1b96b9 commit 2596617Copy full SHA for 2596617
1 file changed
src/pkg/utils/script.ts
@@ -59,6 +59,9 @@ export function parseMetadata(code: string): Metadata | null {
59
if (ret.name === undefined) {
60
return null;
61
}
62
+ if (Object.keys(ret).length < 3) {
63
+ return null;
64
+ }
65
if (!ret.namespace) {
66
ret.namespace = [""];
67
0 commit comments