Skip to content

Commit

Permalink
fix: validate obsninja(underscore)
Browse files Browse the repository at this point in the history
  • Loading branch information
yagamuu committed Dec 27, 2020
1 parent dc5e9a3 commit 4ca80c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/commands/misc/receive-obsninja-url.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class ReceiveObsninjaUrl extends commando.Command {
key: 'id',
prompt: '※受信先IDが代入されていません。',
type: 'string',
validate: (id) => id.match(/^[0-9a-zA-Z]{1,24}$/),
validate: (id) => id.match(/^[0-9a-zA-Z_]{1,24}$/),
},
],
});
Expand Down
2 changes: 1 addition & 1 deletion src/commands/misc/send-obsninja-url.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class SendObsninjaUrl extends commando.Command {
key: 'id',
prompt: '※送信先IDが代入されていません。',
type: 'string',
validate: (id) => id.match(/^[0-9a-zA-Z]{1,24}$/),
validate: (id) => id.match(/^[0-9a-zA-Z_]{1,24}$/),
},
],
});
Expand Down

0 comments on commit 4ca80c4

Please sign in to comment.