From 72e8af2e8325880a5ddf3b0ecd24ceaa489effe7 Mon Sep 17 00:00:00 2001 From: Dan Connolly Date: Fri, 25 Aug 2023 17:15:35 -0500 Subject: [PATCH] fix(inter-protocol): brands in CLI need not start with A-Z --- packages/inter-protocol/src/clientSupport.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/inter-protocol/src/clientSupport.js b/packages/inter-protocol/src/clientSupport.js index 304cf54173fd..314a59313dd9 100644 --- a/packages/inter-protocol/src/clientSupport.js +++ b/packages/inter-protocol/src/clientSupport.js @@ -260,7 +260,7 @@ export const makeParseAmount = (agoricNames, makeError = msg => RangeError(msg)) => opt => { assert.typeof(opt, 'string', 'parseAmount expected string'); - const m = opt.match(/^(?[\d_]+(\.[\d_]+)?)(?[A-Z]\w*?)$/); + const m = opt.match(/^(?[\d_]+(\.[\d_]+)?)(?\w*?)$/); if (!m || !m.groups) { throw makeError(`invalid amount: ${opt}`); }