Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /usr/local/lib/node_modules/homebridge-config-ui-x/node_modules/@oznu/hap-client/dist/ drwxr-xr-x | |
| Viewing file: Select action/file-type: "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.toLongFormUUID = exports.isValid = void 0;
const VALID_UUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
function isValid(UUID) {
return VALID_UUID_REGEX.test(UUID);
}
exports.isValid = isValid;
const VALID_SHORT_REGEX = /^[0-9a-f]{1,8}$/i;
function toLongFormUUID(uuid, base = '-0000-1000-8000-0026BB765291') {
if (isValid(uuid))
return uuid.toUpperCase();
if (!VALID_SHORT_REGEX.test(uuid))
throw new TypeError('uuid was not a valid UUID or short form UUID');
if (!isValid('00000000' + base))
throw new TypeError('base was not a valid base UUID');
return (('00000000' + uuid).substr(-8) + base).toUpperCase();
}
exports.toLongFormUUID = toLongFormUUID;
//# sourceMappingURL=uuid.js.map |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0061 ]-- |