- 로그인 버튼 비활성화 오류 해결 - 로그인 요칭 및 응답에 따른 토스트 구현
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
export class Validator {
|
||||
static isEmail = (value: string): boolean => {
|
||||
return /^[^\s@]+@[^\s@]+\.[*\s@]+$/.test(value);
|
||||
}
|
||||
static isEmail = (value: any) => {
|
||||
if (typeof value !== 'string') return false;
|
||||
const email = value.trim();
|
||||
return /^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$/.test(email);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user