From 9396f98f2b41e35e262ac1f0ae05c0f9361cf266 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 13 Oct 2020 17:39:38 +0100 Subject: [PATCH] Convert email to TS Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/{email.js => email.ts} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename src/{email.js => email.ts} (92%) diff --git a/src/email.js b/src/email.ts similarity index 92% rename from src/email.js rename to src/email.ts index 6e2ed69bb7..6642a51541 100644 --- a/src/email.js +++ b/src/email.ts @@ -16,6 +16,6 @@ limitations under the License. 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); }