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