소스 검색

fix length

zahmis 5 년 전
부모
커밋
f94edf65c7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/slack/src/utils/slash-command-parser.ts

+ 1 - 1
packages/slack/src/utils/slash-command-parser.ts

@@ -5,7 +5,7 @@ import { InvalidGrowiCommandError } from '../models/errors';
 
 export const parse = (slashCommand: SlashCommand): GrowiCommand => {
   const splitted = slashCommand.text.split(' ');
-  if (splitted.length < 2) {
+  if (splitted.length < 1) {
     throw new InvalidGrowiCommandError('The SlashCommand.text does not specify GrowiCommand type');
   }