Skip to content

Commit

Permalink
test non escape for awk
Browse files Browse the repository at this point in the history
  • Loading branch information
0815Creeper committed Feb 20, 2024
1 parent fc13037 commit 5fc438e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/Example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
echo "starting gif fixing"
mv examples/src/gif_*.gif examples/src/${{ matrix.file-name }}_files
$env:Path += ";C:\Program Files\Git\usr\bin"
awk '{if($0~/<img src=\"data:image\/gif;base64,[[:alpha:],[:digit:],\/,+,=]*\" \/>/) {sub(/<img src=\"data:image\/gif;base64,[[:alpha:],[:digit:],\/,+,=]*\" \/>/,\"![gif](${{ matrix.file-name }}_files\/gif_\"++i\".gif)\")}}1' examples/src/${{ matrix.file-name }}.md > examples/src/tmp_${{ matrix.file-name }}.md
awk '{if($0~/<img src="data:image/gif;base64,[[:alpha:],[:digit:],/,+,=]*" />/) {sub(/<img src="data:image/gif;base64,[[:alpha:],[:digit:],/,+,=]*" />/,"![gif](${{ matrix.file-name }}_files/gif_"++i".gif)")}}1' examples/src/${{ matrix.file-name }}.md > examples/src/tmp_${{ matrix.file-name }}.md
mv -Force examples/src/tmp_${{ matrix.file-name }}.md examples/src/${{ matrix.file-name }}.md
echo "gifs should be fixed"
Expand Down

0 comments on commit 5fc438e

Please sign in to comment.