UNPKG

@coreui/vue-pro

Version:

UI Components Library for Vue.js

19 lines (16 loc) 420 B
'use strict'; const isValidInput = (value, type) => { if (type === 'number') { return /^\d$/.test(value); } return /^.$/u.test(value); }; const extractValidChars = (value, type) => { if (type === 'number') { return value.replace(/\D/g, ''); } return value; }; exports.extractValidChars = extractValidChars; exports.isValidInput = isValidInput; //# sourceMappingURL=utils.js.map