fix(reverse-sync): 리스트/테이블 블록 매핑 및 텍스트 전이 수정#653
Merged
Conversation
문제 1: _find_mapping_by_text의 prefix 매칭이 이미지 캡션(55자)을 리스트(994자) 대신 반환 → 길이가 가장 유사한 후보를 선택하도록 수정. 문제 2: _transfer_text_changes의 str.replace가 잘못된 위치에서 매칭하여 텍스트 손상 발생 → 문자 정렬 기반으로 완전 재작성. 추가: 공백 무시 비교 3차 매칭, _align_chars, _find_insert_pos 헬퍼. verify 결과: 5/5 PASS (기존 2/5). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
_find_mapping_by_text의 2차 prefix 매칭이 길이가 짧은 이미지 캡션(55자)을 리스트 요소(994자) 대신 반환하는 버그 수정 — 모든 후보를 수집하고 길이가 가장 유사한 후보를 선택_transfer_text_changes를 문자 정렬(alignment) 기반으로 완전 재작성하여 텍스트 손상("Action At : " → "ActionAt:") 및 insert opcode 미처리 문제 해결Test plan
python3 -m pytest tests/ -v— 189 passed (기존 e2e 격리 이슈 1건은 main에서도 동일)python3 bin/reverse_sync_cli.py verify --branch jk/fix-typo-and-grammar --limit 5— 5/5 PASS--limit 20이상)으로 regression 확인🤖 Generated with Claude Code