Convert email to TS
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
9cfc075d68
commit
9396f98f2b
1 changed files with 1 additions and 1 deletions
|
@ -16,6 +16,6 @@ limitations under the License.
|
||||||
|
|
||||||
const EMAIL_ADDRESS_REGEX = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i;
|
const EMAIL_ADDRESS_REGEX = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i;
|
||||||
|
|
||||||
export function looksValid(email) {
|
export function looksValid(email: string): boolean {
|
||||||
return EMAIL_ADDRESS_REGEX.test(email);
|
return EMAIL_ADDRESS_REGEX.test(email);
|
||||||
}
|
}
|
Loading…
Reference in a new issue