Skip to content

Commit

Permalink
Merge pull request #91 from weichang-bianjie/coinswap
Browse files Browse the repository at this point in the history
 coin denom support `-`
  • Loading branch information
weichang-x authored Sep 2, 2021
2 parents 4c0d991 + 6b872f4 commit 3d7b782
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 @@ -579,7 +579,7 @@ func (coins Coins) Sort() Coins {

var (
// Denominations can be 3 ~ 64 characters long.
reDnmString = `[a-zA-Z][a-zA-Z0-9/:]{2,127}`
reDnmString = `[a-zA-Z][a-zA-Z0-9/:-]{2,127}`
reAmt = `[[:digit:]]+`
reDecAmt = `[[:digit:]]*[.]*[[:digit:]]+`
reSpc = `[[:space:]]*`
Expand Down

0 comments on commit 3d7b782

Please sign in to comment.