UNPKG

@thi.ng/checks

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