Skip to content

Commit e2e2f1f

Browse files
authored
Merge pull request #165 from kfit-dev/master
Add additional currencies
2 parents 5349fd7 + 3cf7b68 commit e2e2f1f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/monetize/parser.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ class Parser
88
'£' => 'GBP',
99
'₤' => 'GBP',
1010
'R$' => 'BRL',
11+
'RM' => 'MYR',
12+
'Rp' => 'IDR',
1113
'R' => 'ZAR',
1214
'¥' => 'JPY',
1315
'C$' => 'CAD',
@@ -23,6 +25,10 @@ class Parser
2325
'zł' => 'PLN',
2426
'₸' => 'KZT',
2527
"₩" => 'KRW',
28+
'S$' => 'SGD',
29+
'HK$'=> 'HKD',
30+
'NT$'=> 'TWD',
31+
'₱' => 'PHP',
2632
}
2733

2834
MULTIPLIER_SUFFIXES = { 'K' => 3, 'M' => 6, 'B' => 9, 'T' => 12 }

0 commit comments

Comments
 (0)