auto: 일일 백업 2026-06-06 02:00

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
hyowons
2026-06-06 02:00:03 +09:00
parent a61aad145c
commit 020ac27bd0
5 changed files with 130 additions and 24 deletions
@@ -0,0 +1,3 @@
# 2026-06-05
- 하나은행 `문자통지수수료` 260원 건은 후잉 전송 실패가 아니라 구조화 파싱 실패 → raw 폴백 성공이었다. 원인: 하나은행 파서가 줄바꿈 형식만 받았고 실제 문자는 `[Web발신] 하나,06/05,13:08 ...` 한 줄 형식이었다. `parsers.py``HANA_RE`를 공백/줄바꿈/쉼표 형식 모두 받도록 수정했고, `문자통지수수료``기타비용 ← 하나은행(효원)`, item `잡비`로 overrides 적용되는 것까지 검증했다.
@@ -33,12 +33,13 @@ def _normalize(text: str) -> str:
HANA_RE = re.compile(
r"\[Web발신\]\s*\n"
r"하나,(?P<md>\d{2}/\d{2})\s+(?P<hm>\d{2}:\d{2})\s*\n"
r"(?P<acct>\S+)\s*\n"
r"(?P<kind>입금|출금)(?P<amount>[\d,]+)원\s*\n?"
r"(?P<merchant>[^\n]*)"
r"(?:\s*\n잔액(?P<balance>[\d,]+)원)?",
r"\[Web발신\]\s*"
r"하나,(?P<md>\d{2}/\d{2})[,\s]+(?P<hm>\d{2}:\d{2})\s+"
r"(?P<acct>\S+)\s+"
r"(?P<kind>입금|출금)\s*(?P<amount>[\d,]+)원\s*"
r"(?P<merchant>.*?)"
r"(?:\s+잔액\s*(?P<balance>[\d,]+)원?)?\s*$",
re.DOTALL,
)