fix: bug using newline separator (#418)

This commit is contained in:
Tonye Jack
2022-03-08 06:59:26 -05:00
committed by GitHub
parent abb8062519
commit f5a8de7d36
3 changed files with 27 additions and 0 deletions

View File

@@ -2,6 +2,10 @@
set -eu
INPUT_SEPARATOR="${INPUT_SEPARATOR//'%'/'%25'}"
INPUT_SEPARATOR="${INPUT_SEPARATOR//$'\n'/'%0A'}"
INPUT_SEPARATOR="${INPUT_SEPARATOR//$'\r'/'%0D'}"
function get_diff() {
base="$1"
sha="$2"