mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 08:17:35 +02:00
Allow letters in USPS tracking
This commit is contained in:
@@ -23,7 +23,7 @@ module.exports = class USPSTrackingCommand extends Command {
|
|||||||
label: 'tracking id',
|
label: 'tracking id',
|
||||||
prompt: 'What is the tracking ID of the package you would like to track?',
|
prompt: 'What is the tracking ID of the package you would like to track?',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
validate: id => /^[0-9]+$/.test(id)
|
validate: id => /^[0-9A-Z]+$/i.test(id)
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user