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}`); }