Compare commits

..

No commits in common. "56ae730efa9fe8ff53e7790e628f5b51dea89fae" and "16e9ce173a88c4d246747daf748defba3d6db69f" have entirely different histories.

2 changed files with 4 additions and 4 deletions

View File

@ -1440,8 +1440,8 @@ export default function StuffDetail() {
* 전각20자 (반각40자) * 전각20자 (반각40자)
*/ */
const checkLength = (value) => { const checkLength = (value) => {
let fullWidthLength = value.replace(/[^\u3000-\u9FFF\uFF01-\uFF5E]/g, '').length let fullWidthLength = value.replace(/[^\uFF01-\uFF5E]/g, '').length
let halfWidthLength = value.replace(/[\u3000-\u9FFF\uFF01-\uFF5E]/g, '').length let halfWidthLength = value.replace(/[\uFF01-\uFF5E]/g, '').length
let totalLength = fullWidthLength * 2 + halfWidthLength let totalLength = fullWidthLength * 2 + halfWidthLength
return totalLength return totalLength

View File

@ -493,8 +493,8 @@ export const useEstimateController = (planNo, flag) => {
* 전각20자 (반각40자) * 전각20자 (반각40자)
*/ */
const checkLength = (value) => { const checkLength = (value) => {
let fullWidthLength = value.replace(/[^\u3000-\u9FFF\uFF01-\uFF5E]/g, '').length let fullWidthLength = value.replace(/[^\uFF01-\uFF5E]/g, '').length
let halfWidthLength = value.replace(/[\u3000-\u9FFF\uFF01-\uFF5E]/g, '').length let halfWidthLength = value.replace(/[\uFF01-\uFF5E]/g, '').length
let totalLength = fullWidthLength * 2 + halfWidthLength let totalLength = fullWidthLength * 2 + halfWidthLength
return totalLength return totalLength