Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## [Unreleased]

- Fixed regex for null bytes character replacement to replace all occurrences, not just the first. ([#1966](https://github.com/heroku/heroku-buildpack-python/pull/1966))

## [v319] - 2025-11-14

Expand Down
2 changes: 1 addition & 1 deletion lib/python_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ function python_version::read_trimmed_version_lines() {
--regexp-extended \
--expression 's/^[[:space:]]+//' \
--expression 's/[[:space:]]+$//' \
--expression 's/\x0/␀/' \
--expression 's/\x0/␀/g' \
--expression '/^(#|$)/d' \
"${file}"
}
Expand Down
Binary file modified spec/fixtures/runtime_txt_invalid_version/runtime.txt
Binary file not shown.