mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 04:06:44 +02:00
Convert email to TS
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
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;
|
||||
|
||||
export function looksValid(email) {
|
||||
export function looksValid(email: string): boolean {
|
||||
return EMAIL_ADDRESS_REGEX.test(email);
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user