Update version_branch.yml

This commit is contained in:
2025-12-23 16:25:07 -06:00
parent b981391813
commit 4b59ddcb34

View File

@@ -192,9 +192,7 @@ data = target.read_bytes()
# Disallow literal tab (0x09) and other ASCII control characters except LF (0x0A) and CR (0x0D).
# Report line numbers without printing the raw characters.
def byte_to_line(blob: bytes, idx: int) -> int:
# Count newlines prior to byte offset.
return blob[:idx].count(b'
') + 1