Skip to content

Commit

Permalink
use ISO code for Mexican peso (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
Neur0toxine authored Mar 25, 2021
1 parent 6ae7bdc commit 92cf5fa
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion core/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ var defaultCurrencies = map[string]string{
"cop": "COL$",
"crc": "₡",
"cup": "$MN",
"mxn": "NP$",
"nio": "C$",
"pab": "B/",
"pyg": "₲",
Expand Down
1 change: 1 addition & 0 deletions core/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ func TestUtils_GetCurrencySymbol(t *testing.T) {
}

assert.Equal(t, "XAG", GetCurrencySymbol("xag"))
assert.Equal(t, "MXN", GetCurrencySymbol("mxn"))
}

func TestUtils_ReplaceMarkdownSymbols(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.12
require (
github.com/DATA-DOG/go-sqlmock v1.3.3
github.com/aws/aws-sdk-go v1.25.14
github.com/certifi/gocertifi v0.0.0-20200922220541-2c3bb06c6054
github.com/certifi/gocertifi v0.0.0-20200922220541-2c3bb06c6054 // indirect
github.com/denisenkom/go-mssqldb v0.0.0-20190830225923-3302f0226fbd // indirect
github.com/getsentry/raven-go v0.2.0
github.com/gin-contrib/multitemplate v0.0.0-20190914010127-bba2ccfe37ec
Expand Down

0 comments on commit 92cf5fa

Please sign in to comment.