UNPKG

@valkyriestudios/validator

Version:

A lightweight configurable javascript validator

9 lines (8 loc) 266 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.vAlphaNumSpaces = vAlphaNumSpaces; exports.default = vAlphaNumSpaces; const RGX = /^[\w ]*$/; function vAlphaNumSpaces(val) { return typeof val === 'string' && RGX.test(val); }