UNPKG

web-push

Version:
8 lines (7 loc) • 136 B
/** * @param {string} base64 * @returns {boolean} */ export function validate(base64) { return /^[A-Za-z0-9\-_]+$/.test(base64); }