Skip to content

Commit 225417a

Browse files
committed
fix: CustomerInfo의 잘못된 정규식 수정
1 parent 7a81fb2 commit 225417a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/shop/src/components/common/customer_info_form_dialog.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { FC, MouseEventHandler, useRef } from "react";
55

66
import { useShopClient, useShopContext, useUserStatus } from "@frontend/shop/hooks";
77
import type { CustomerInfo } from "@frontend/shop/schemas";
8+
import { PHONE_REGEX } from "@frontend/shop/utils";
89

910
type CustomerInfoFormDialogPropsType = {
1011
open: boolean;
@@ -63,7 +64,7 @@ export const CustomerInfoFormDialog: FC<CustomerInfoFormDialogPropsType> = Suspe
6364
defaultValue={defaultValue?.phone}
6465
slotProps={{
6566
htmlInput: {
66-
pattern: new RegExp(/^((010-\d{4}-\d{4})|(\+\d{11,14}))$/, "i").source,
67+
pattern: PHONE_REGEX.source,
6768
title: phoneValidationFailedStr,
6869
},
6970
}}

0 commit comments

Comments
 (0)