mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 22:32:50 +02:00
Fix
This commit is contained in:
+1
-1
@@ -11,7 +11,7 @@ module.exports = class CodeArgumentType extends ArgumentType {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
parse(value) {
|
parse(value, msg) {
|
||||||
if (!value) return null;
|
if (!value) return null;
|
||||||
if (/^[0-9]+$/.test(value)) {
|
if (/^[0-9]+$/.test(value)) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user