@cloud-copilot/iam-policy
Version:
An ORM for AWS IAM policies
13 lines • 400 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isAllWildcards = isAllWildcards;
/**
* Checks if a string is all wildcards(*)
*
* @param value The value to check if it is a wildcard
* @returns True if the value is all wildcards, false otherwise
*/
function isAllWildcards(value) {
return value.match(/^\*+$/) !== null;
}
//# sourceMappingURL=utils.js.map