mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 20:25:48 +00:00
Encode any 3 character ASCII currency code (#106)
* Encode all 3 character ASCII codes
This commit is contained in:
@@ -18,7 +18,7 @@ function isoToBytes(iso: string): Buffer {
|
||||
* Tests if ISO is a valid iso code
|
||||
*/
|
||||
function isIsoCode(iso: string): boolean {
|
||||
return ISO_REGEX.test(iso);
|
||||
return iso.length === 3;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user