TODO validateTel

This commit is contained in:
Matteo Manzinello 2020-07-10 11:39:47 +02:00
parent 679581b956
commit 76e7ddcd30
1 changed files with 6 additions and 0 deletions

View File

@ -880,6 +880,12 @@ const validateEmail = (email: string): boolean =>
// validate an array of emails
const validateEmails = (arr: string[]): boolean => arr.every(validateEmail);
// validate a single tel with regex
const validateTel = (tel: string): boolean => {
// TODO
return true;
};
// copy of a string
const copyToClipboard = (str: string): boolean => {
let el: HTMLInputElement = createElement("textarea") as HTMLInputElement;