diff --git a/src/commands/misc/receive-obsninja-url.js b/src/commands/misc/receive-obsninja-url.js index d1d8be0..9a2698a 100644 --- a/src/commands/misc/receive-obsninja-url.js +++ b/src/commands/misc/receive-obsninja-url.js @@ -15,7 +15,7 @@ class ReceiveObsninjaUrl extends commando.Command { key: 'id', prompt: '※受信先IDが代入されていません。', type: 'string', - validate: (id) => id.match(/^[0-9a-zA-Z]+$/), + validate: (id) => id.match(/^[0-9a-zA-Z]{1,24}$/), }, ], }); diff --git a/src/commands/misc/send-obsninja-url.js b/src/commands/misc/send-obsninja-url.js index 8713874..d65a771 100644 --- a/src/commands/misc/send-obsninja-url.js +++ b/src/commands/misc/send-obsninja-url.js @@ -15,7 +15,7 @@ class SendObsninjaUrl extends commando.Command { key: 'id', prompt: '※送信先IDが代入されていません。', type: 'string', - validate: (id) => id.match(/^[0-9a-zA-Z]+$/), + validate: (id) => id.match(/^[0-9a-zA-Z]{1,24}$/), }, ], });