Skip to content

Fix encoding of edge cases of escape sequences#1

Open
y86 wants to merge 3 commits intomainfrom
yuri/fix-escape-sequence-encoding
Open

Fix encoding of edge cases of escape sequences#1
y86 wants to merge 3 commits intomainfrom
yuri/fix-escape-sequence-encoding

Conversation

@y86
Copy link
Copy Markdown

@y86 y86 commented Feb 19, 2025

Fix the following error when encoding weirdly escaped strings, such as "/\\\\\\\\\\\\/windows%2fwin.ini%23vt/test":

gen_event handler terminating (CaseClauseError): no case clause matching: :quoted_and_escaped

Logfmt.Encoder.deduce_string_style/2 (logfmt)(lib/logfmt/encoder.ex:79)
Logfmt.Encoder.encode_value/1 (logfmt)(lib/logfmt/encoder.ex:42)
Logfmt.Encoder.encode_pair/1 (logfmt)(lib/logfmt/encoder.ex:57)
Enum."-map/2-lists^map/1-0-"/2 (elixir)(lib/enum.ex:1294)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant