decord/source/13036_IsWellFormedUnitIdentifier.js

30 lines
842 B
JavaScript
Raw Normal View History

2026-07-22 07:54:56 +00:00
// Module ID: 13036
// Function ID: 99288
2026-07-20 16:05:17 +00:00
// Name: IsWellFormedUnitIdentifier
2026-07-21 06:55:02 +00:00
// Dependencies: []
2026-07-20 16:05:17 +00:00
2026-07-22 07:54:56 +00:00
// Module 13036 (IsWellFormedUnitIdentifier)
2026-07-20 16:05:17 +00:00
arg5.IsWellFormedUnitIdentifier = function IsWellFormedUnitIdentifier(GetOptionResult3) {
let tmp;
let tmp2;
const str = function toLowerCase(GetOptionResult3) {
return GetOptionResult3.replace(/([A-Z])/g, (arg0, str) => str.toLowerCase());
}(GetOptionResult3);
if (arg1(arg6[0]).IsSanctionedSimpleUnitIdentifier(str)) {
return true;
} else {
const parts = str.split("-per-");
if (2 !== parts.length) {
return false;
} else {
[tmp, tmp2] = parts;
if (arg1(arg6[0]).IsSanctionedSimpleUnitIdentifier(tmp)) {
if (arg1(arg6[0]).IsSanctionedSimpleUnitIdentifier(tmp2)) {
return true;
}
}
return false;
}
}
};