Skip to content

Commit

Permalink
yin escape in string fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mbj4668 committed May 17, 2023
1 parent a160189 commit 34b4de4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 38 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
name: OTP ${{matrix.otp}}
strategy:
matrix:
otp: ['24']
otp: ['24', '25']
steps:
- uses: actions/checkout@v3

Expand Down
33 changes: 0 additions & 33 deletions .travis.yml

This file was deleted.

5 changes: 1 addition & 4 deletions plugins/yanger_yin.erl
Original file line number Diff line number Diff line change
Expand Up @@ -349,10 +349,7 @@ escape(BStr, RPs) ->
end, BStr, RPs).

replace_patterns() ->
[{<<"\\">>, <<"\\\\">>},
{<<"\"">>, <<"\\\"">>},
{<<"\t">>, <<"\\t">>},
{<<"&">>, <<"&amp;">>},
[{<<"&">>, <<"&amp;">>},
{<<"<">>, <<"&lt;">>},
{<<">">>, <<"&gt;">>},
{<<"\"">>, <<"&quot;">>},
Expand Down

0 comments on commit 34b4de4

Please sign in to comment.