mirror of https://github.com/vector-im/riot-web
Convert email to TS
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/21833/head
parent
9cfc075d68
commit
9396f98f2b
|
@ -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 New Issue