Skip to content

Commit

Permalink
Fix hands arg being parsed as dollar
Browse files Browse the repository at this point in the history
  • Loading branch information
mhluska committed Aug 2, 2021
1 parent 2e4091b commit ca247dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function camelize(str) {
}

function isDollarValue(str) {
return !!str.match(/^\$?\d+(,\d{3})*(\.[0-9]{2})?$/);
return !!str.match(/^\$\d+(,\d{3})*(\.[0-9]{2})?$/);
}

function parseDollar(str) {
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,6 @@ export default class Utils {
index === ranges.length - 1
)}: ${formatter(range.value)}`
)
.join(' ');
.join(', ');
}
}

0 comments on commit ca247dc

Please sign in to comment.