mirror of
https://github.com/github/spec-kit
synced 2026-06-21 13:51:39 +00:00
fix: use 0-based byte offset in ps1 encoding test failure message
This commit is contained in:
committed by
GitHub
parent
07cde6764a
commit
da9911051e
@@ -36,7 +36,7 @@ def test_ps1_file_is_ascii_only(ps1_file: Path):
|
||||
"""Every .ps1 file must contain only ASCII characters (PS 5.1 compat)."""
|
||||
content = ps1_file.read_bytes()
|
||||
non_ascii = [
|
||||
(i + 1, byte)
|
||||
(i, byte)
|
||||
for i, byte in enumerate(content)
|
||||
if byte > 127
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user