UNPKG

@svta/common-media-library

Version:
19 lines 475 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isCmcdCustomKey = isCmcdCustomKey; const CUSTOM_KEY_REGEX = /^[a-zA-Z0-9-.]+-[a-zA-Z0-9-.]+$/; /** * Check if a key is a custom key. * * @param key - The key to check. * * @returns `true` if the key is a custom key, `false` otherwise. * * @group CMCD * * @beta */ function isCmcdCustomKey(key) { return CUSTOM_KEY_REGEX.test(key); } //# sourceMappingURL=isCmcdCustomKey.js.map