Merge branch 'sub_laptop_1' of C:/Aislo_wt/sub_laptop_1 into main_laptop_1

This commit is contained in:
2026-11-16 21:08:18 +09:00
6 changed files with 437 additions and 5 deletions
@@ -33,7 +33,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)