File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -611,7 +611,7 @@ function _parse_key(l::Parser)
611611 else
612612 set_marker! (l)
613613 if accept_batch (l, isvalid_barekey_char)
614- if ! (peek (l) == ' .' || peek (l) == ' ' || peek (l) == ' ]' || peek (l) == ' =' )
614+ if ! (peek (l) == ' .' || iswhitespace ( peek (l)) || peek (l) == ' ]' || peek (l) == ' =' )
615615 c = eat_char (l)
616616 return ParserError (ErrInvalidBareKeyCharacter, c)
617617 end
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ using TOML: ParserError
1414 TOML. parse (IOBuffer (str)) ==
1515 TOML. parse (p, str) == TOML. parse (p, SubString (str)) ==
1616 TOML. parse (p, IOBuffer (str)) == dict
17+ @test TOML. parse (" a\t =1" ) == dict
1718 @test_throws ParserError TOML. parse (invalid_str)
1819 @test_throws ParserError TOML. parse (SubString (invalid_str))
1920 @test_throws ParserError TOML. parse (IOBuffer (invalid_str))
You can’t perform that action at this time.
0 commit comments