Skip to content

Commit e520411

Browse files
committed
Merge remote-tracking branch 'github/feat/1.0.6/ui' into release/1.0.6
2 parents 118f92b + e360b09 commit e520411

File tree

1 file changed

+3
-3
lines changed
  • ui/src/pages/Install/components/FourthStep

1 file changed

+3
-3
lines changed

ui/src/pages/Install/components/FourthStep/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Form, Button } from 'react-bootstrap';
33
import { useTranslation } from 'react-i18next';
44

55
import type { FormDataType } from '@/common/interface';
6+
import Patern from '@/common/patern';
67
import Progress from '../Progress';
78

89
interface Props {
@@ -54,8 +55,7 @@ const Index: FC<Props> = ({ visible, data, changeCallback, nextCallback }) => {
5455
};
5556
}
5657

57-
const mailReg = /^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/;
58-
if (contact_email.value && !contact_email.value.match(mailReg)) {
58+
if (contact_email.value && !contact_email.value.match(Patern.mail)) {
5959
bol = false;
6060
data.contact_email = {
6161
value: contact_email.value,
@@ -91,7 +91,7 @@ const Index: FC<Props> = ({ visible, data, changeCallback, nextCallback }) => {
9191
};
9292
}
9393

94-
if (email.value && !email.value.match(mailReg)) {
94+
if (email.value && !email.value.match(Patern.mail)) {
9595
bol = false;
9696
data.email = {
9797
value: email.value,

0 commit comments

Comments
 (0)