-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
componentsComponents pkgs scopeComponents pkgs scopeenhancementNew feature or requestNew feature or requesttodo
Description
// TODO: improve date bypassing for phones |
// 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
Metadata
Metadata
Assignees
Labels
componentsComponents pkgs scopeComponents pkgs scopeenhancementNew feature or requestNew feature or requesttodo