logfmt-python icon indicating copy to clipboard operation
logfmt-python copied to clipboard

"foo=bar=bat" parsed incorrectly

Open egnor opened this issue 3 years ago • 0 comments

% python
Python 3.9.5 (default, May 11 2021, 08:20:37) 
[GCC 10.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import logfmt.parser
>>> logfmt.parser.parse_line("foo=bar=bat")
{'foo': 'bar', 'bat': True}

By my reading of https://pkg.go.dev/github.com/kr/logfmt, this should be {'foo': 'bar=bat'}, since string_byte includes = (though ident_byte does not).

egnor avatar Oct 06 '21 16:10 egnor