aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node_modules/uuid/dist/esm-browser/validate.js
blob: f1cdc7af49bcfc2a66fb1efb3532095e85ce8415 (plain) (blame)
1
2
3
4
5
6
7
import REGEX from './regex.js';

function validate(uuid) {
  return typeof uuid === 'string' && REGEX.test(uuid);
}

export default validate;