From 87a182817ec5710dd110e38c95b58b679137711d Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Mon, 15 Apr 2024 14:48:49 +0900 Subject: [PATCH] =?UTF-8?q?=EC=86=8C=EB=82=98=ED=81=90=EB=B8=8C=20?= =?UTF-8?q?=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/cokr/xit/fims/crdn/receive/eqpmnt/LayoutParser.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/cokr/xit/fims/crdn/receive/eqpmnt/LayoutParser.java b/src/main/java/cokr/xit/fims/crdn/receive/eqpmnt/LayoutParser.java index ddcfd105..41ad7113 100644 --- a/src/main/java/cokr/xit/fims/crdn/receive/eqpmnt/LayoutParser.java +++ b/src/main/java/cokr/xit/fims/crdn/receive/eqpmnt/LayoutParser.java @@ -319,12 +319,12 @@ abstract public class LayoutParser { while(!end) { String removed = StringUtils.removeEnd(itemValue, "0"); if(removed.equals(itemValue)) { - itemValue = removed; end = true; + } else { + itemValue = removed; } } - itemValue = itemValue.replaceAll("0+$", ""); if(itemValue.endsWith(".")){ itemValue = itemValue + "0"; }