Round 4 - no double-unescape

This commit is contained in:
Yair Morgenstern 2021-07-02 13:08:04 +03:00 committed by GitHub
parent 3a24597a24
commit 8bbc286eeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,8 +73,7 @@ jobs:
shell: bash
run: |
r=$(cat changelog.md)
echo "$r"
r=$(grep -Pzo --color '\\#{2}.3.15.7[^\\#]*?\\#{2}' $r) # grep to get only our release
r=$(grep -Pzo --color '\#{2}.3.15.7[^\#]*?\#{2}' $r) # grep to get only our release
echo "$r"
r="${r//'%'/'%25'}" # Multiline escape sequences for %
r="${r//$'\n'/'%0A'}" # Multiline escape sequences for '\n'