mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-09-29 14:26:18 +00:00
8 lines
288 B
TypeScript
8 lines
288 B
TypeScript
export class FormService{
|
|
|
|
EMAIL_REGEXP = "^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$"
|
|
|
|
isValidEmail = (email : string) => {
|
|
return new RegExp(this.EMAIL_REGEXP).test(email)
|
|
}
|
|
} |