From a0b3f7fbe5e5dc778b5eb81e5114bcad03235e1d Mon Sep 17 00:00:00 2001 From: basssy Date: Wed, 21 May 2025 09:39:58 +0900 Subject: [PATCH] =?UTF-8?q?#1053=20=EC=A0=84=EA=B0=81/=EB=B0=98=EA=B0=81?= =?UTF-8?q?=20length=EC=B2=B4=ED=81=AC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/management/StuffDetail.jsx | 4 ++-- src/hooks/floorPlan/estimate/useEstimateController.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/management/StuffDetail.jsx b/src/components/management/StuffDetail.jsx index d07d0d3e..7f40e780 100644 --- a/src/components/management/StuffDetail.jsx +++ b/src/components/management/StuffDetail.jsx @@ -1440,8 +1440,8 @@ export default function StuffDetail() { * 전각20자 (반각40자) */ const checkLength = (value) => { - let fullWidthLength = value.replace(/[^\uFF01-\uFF5E]/g, '').length - let halfWidthLength = value.replace(/[\uFF01-\uFF5E]/g, '').length + let fullWidthLength = value.replace(/[^\u3000-\u9FFF\uFF01-\uFF5E]/g, '').length + let halfWidthLength = value.replace(/[\u3000-\u9FFF\uFF01-\uFF5E]/g, '').length let totalLength = fullWidthLength * 2 + halfWidthLength return totalLength diff --git a/src/hooks/floorPlan/estimate/useEstimateController.js b/src/hooks/floorPlan/estimate/useEstimateController.js index 412211f1..4a752a9f 100644 --- a/src/hooks/floorPlan/estimate/useEstimateController.js +++ b/src/hooks/floorPlan/estimate/useEstimateController.js @@ -493,8 +493,8 @@ export const useEstimateController = (planNo, flag) => { * 전각20자 (반각40자) */ const checkLength = (value) => { - let fullWidthLength = value.replace(/[^\uFF01-\uFF5E]/g, '').length - let halfWidthLength = value.replace(/[\uFF01-\uFF5E]/g, '').length + let fullWidthLength = value.replace(/[^\u3000-\u9FFF\uFF01-\uFF5E]/g, '').length + let halfWidthLength = value.replace(/[\u3000-\u9FFF\uFF01-\uFF5E]/g, '').length let totalLength = fullWidthLength * 2 + halfWidthLength return totalLength