Skip to content
Merged
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
4 changes: 3 additions & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ def clean_output(output)
# https://github.com/heroku/hatchet/issues/162
.gsub(/ {8}(?=\R)/, '')
# Remove ANSI colour codes used in buildpack output (e.g. error messages).
.gsub(/\e\[[0-9;]+m/, '')
# GitHub Actions runners deliver the escape byte as the two literal characters
# "^[" instead of 0x1B, so strip both variants.
.gsub(/(?:\e|\^\[)\[[0-9;]+m/, '')
end

def normalize_trailing_newlines(output)
Expand Down
Loading