Merge remote-tracking branch 'origin/sub_laptop_1' into sub_laptop_2

This commit is contained in:
2026-11-16 22:02:50 +09:00
6 changed files with 437 additions and 5 deletions
@@ -36,7 +36,8 @@ EIGHT = Decimal(8)
def norm_unit(u) -> str:
t = str(u or "").strip().replace("m3", "㎥").replace("m2", "㎡")
t = re.sub(r"[mM]3", "㎥", re.sub(r"[mM]2", "㎡", str(u or "").strip())) # 848-6 대문자 꼴
t = re.sub(r"(?<![A-Za-z])(M|HR|Hr|TON|Ton)(?![A-Za-z])", lambda m: m.group(1).lower(), t)
return re.sub(r"/(시간|h|Hr|HR)$", "/hr", t)