UNPKG

@thi.ng/checks

Version:
6 lines (5 loc) 133 B
const RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i; const isUUID = (x) => RE.test(x); export { isUUID };