Skip to content

Commit e0a9446

Browse files
committed
🐛 修复支持无namespace
1 parent 6bb302c commit e0a9446

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/pkg/utils/script.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ export function parseMetadata(code: string): Metadata | null {
5959
if (ret.name === undefined) {
6060
return null;
6161
}
62+
if (!ret.namespace) {
63+
ret.namespace = [""];
64+
}
6265
if (issub) {
6366
ret.usersubscribe = [];
6467
}

0 commit comments

Comments
 (0)