Allow letters in USPS tracking

This commit is contained in:
Dragon Fire
2019-09-22 20:45:30 -04:00
parent 542434062d
commit 2f18a692d4
+1 -1
View File
@@ -23,7 +23,7 @@ module.exports = class USPSTrackingCommand extends Command {
label: 'tracking id',
prompt: 'What is the tracking ID of the package you would like to track?',
type: 'string',
validate: id => /^[0-9]+$/.test(id)
validate: id => /^[0-9A-Z]+$/i.test(id)
}
]
});