Skip to content

Commit

Permalink
Fix denom regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessio Treglia committed Mar 1, 2019
1 parent f588398 commit b498705
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/coin.go
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ func (coins Coins) Sort() Coins {

var (
// Denominations can be 3 ~ 16 characters long.
reDnmString = `[[:lower:]][[:alnum:]]{2,15}`
reDnmString = `[a-z][a-z0-9]{2,15}`
reAmt = `[[:digit:]]+`
reDecAmt = `[[:digit:]]*\.[[:digit:]]+`
reSpc = `[[:space:]]*`
Expand Down

0 comments on commit b498705

Please sign in to comment.