Skip to content

Commit e7ba148

Browse files
committed
Merge remote-tracking branch 'github/feat/1.0.6/ui' into github-main
2 parents da4be34 + 5678b7e commit e7ba148

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,7 +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';
6+
import Pattern from '@/common/pattern';
77
import Progress from '../Progress';
88

99
interface Props {
@@ -55,7 +55,7 @@ const Index: FC<Props> = ({ visible, data, changeCallback, nextCallback }) => {
5555
};
5656
}
5757

58-
if (contact_email.value && !contact_email.value.match(Patern.mail)) {
58+
if (contact_email.value && !Pattern.email.test(contact_email.value)) {
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(Patern.mail)) {
94+
if (email.value && !Pattern.email.test(email.value)) {
9595
bol = false;
9696
data.email = {
9797
value: email.value,

0 commit comments

Comments
 (0)