decord/source/13035_IsWellFormedCurrencyCode.js

20 lines
492 B
JavaScript
Raw Normal View History

2026-07-22 07:54:56 +00:00
// Module ID: 13035
// Function ID: 99284
2026-07-20 16:05:17 +00:00
// Name: IsWellFormedCurrencyCode
// Dependencies: []
2026-07-22 07:54:56 +00:00
// Module 13035 (IsWellFormedCurrencyCode)
2026-07-20 16:05:17 +00:00
arg5.IsWellFormedCurrencyCode = function IsWellFormedCurrencyCode(arg0) {
const arr = function toUpperCase(str) {
return str.replace(/([a-z])/g, (arg0, str) => str.toUpperCase());
}(arg0);
if (3 !== arr.length) {
return false;
} else if (regex.test(arr)) {
return false;
} else {
return true;
}
};
let closure_0 = /[^A-Z]/;