From 2f18a692d4eaf4813e000649a3e4dce6d2c970ca Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 22 Sep 2019 20:45:30 -0400 Subject: [PATCH] Allow letters in USPS tracking --- commands/search/usps-tracking.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/search/usps-tracking.js b/commands/search/usps-tracking.js index b00cd4d8..128d2d8d 100644 --- a/commands/search/usps-tracking.js +++ b/commands/search/usps-tracking.js @@ -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) } ] });