From 82431168d319fa4e406f05ec097bf408e840ce9b Mon Sep 17 00:00:00 2001 From: DjDeveloperr Date: Tue, 30 Mar 2021 17:45:38 +0530 Subject: [PATCH] fix --- deploy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy.ts b/deploy.ts index a831b83..e5d149b 100644 --- a/deploy.ts +++ b/deploy.ts @@ -89,7 +89,7 @@ export function handle( const parts = handle.name.split(/ +/).filter(e => e !== '') if (parts.length > 3 || parts.length < 1) throw new Error('Invalid command name') const root = parts.shift() as string - const group = parts.length === 3 ? parts.shift() : undefined + const group = parts.length === 2 ? parts.shift() : undefined const sub = parts.shift() handle.name = sub ?? root