UNPKG

pkg-components

Version:
2 lines (1 loc) 548 B
const i=e=>/^(?=\w*\d)(?=\w*[A-Z])(?=\w*[a-z])\S{8,16}$/.test(e)!==!0,a=e=>/^[A-Za-zÁÉÍÓÚáéíóúñÑ ]+$/g.test(e)===!1&&e!==""&&e!==void 0&&e!==null,l=(e,s,r)=>e!==void 0&&e!==""&&e!==null?e.length<s||e.length>r:!1,f=e=>/^[-\w.%+]{1,64}@(?:[A-Z0-9-]{1,63}\.){1,125}[A-Z]{2,63}$/i.test(e)===!1&&e!==""&&e!==void 0&&e!==null;function u(...e){const s=[];for(const r of e)if(typeof r=="string")s.push(r);else if(typeof r=="object")for(const[t,n]of Object.entries(r))n&&s.push(t);return s.join(" ")}export{i as a,u as c,f as i,a as o,l as r};