Skip to content

Commit

Permalink
fix(inter-protocol): brands in CLI need not start with A-Z
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc authored Aug 25, 2023
1 parent 22c3573 commit 9e8799d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/inter-protocol/src/clientSupport.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ export const makeParseAmount =
(agoricNames, makeError = msg => RangeError(msg)) =>
opt => {
assert.typeof(opt, 'string', 'parseAmount expected string');
const m = opt.match(/^(?<value>[\d_]+(\.[\d_]+)?)(?<brand>[A-Z]\w*?)$/);
const m = opt.match(/^(?<value>[\d_]+(\.[\d_]+)?)(?<brand>\w*?)$/);
if (!m || !m.groups) {
throw makeError(`invalid amount: ${opt}`);
}
Expand Down

0 comments on commit 9e8799d

Please sign in to comment.