Update version_branch.yml

This commit is contained in:
2025-12-23 18:00:18 -06:00
parent 2fc8eedd6e
commit c65fbd616f

View File

@@ -194,8 +194,7 @@ data = target.read_bytes()
# Report line numbers without printing the raw characters. # Report line numbers without printing the raw characters.
def byte_to_line(blob: bytes, idx: int) -> int: def byte_to_line(blob: bytes, idx: int) -> int:
return blob[:idx].count(b' return blob[:idx].count(b'\n') + 1
') + 1
bad = [] bad = []
for i, b in enumerate(data): for i, b in enumerate(data):