From b498705ab58188501ef195b3a3c99bfbb8a0d800 Mon Sep 17 00:00:00 2001 From: Alessio Treglia Date: Fri, 1 Mar 2019 15:21:27 +0000 Subject: [PATCH] Fix denom regex --- types/coin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/coin.go b/types/coin.go index 6c95debdeb88..365e0f2efad0 100644 --- a/types/coin.go +++ b/types/coin.go @@ -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:]]*`