Open
Description
// bypass numbers
if (!!Number(dateString)) return false;
const property = String(props.property?.value);
// TODO: improve date bypassing for phones
if (["tel", "phone", "cel"].some((v) => property.includes(v))) return false;
return validator.isDate(dateString) || !isNaN(Date.parse(dateString));
} catch (err) {
// ignore errors