We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'\\'
'\"'
Minimal test case:
my $parser = TOML::Parser->new; chomp(my $toml = <DATA>); my $data = $parser->parse($toml); __DATA__ foo="bar=\\\"baz\\\""
This should produce a string value for foo of bar=\"baz\". The syntax is correct, with an escaped slash, \\, followed by an escaped quote, \".
foo
bar=\"baz\"
\\
\"
Instead, TOML::Parser produces an error:
TOML::Parser
Syntax Error: line:1 foo="bar=\\"baz\\"" ^
Separating the two slash-escaped characters avoids the spurious error:
__DATA__ foo="bar=\\ \"baz\\ \""
The text was updated successfully, but these errors were encountered:
Fixes bug in string parsing when \\ immediately precedes \"
5241926
See issue 17 (karupanerura#17)
I have just sent a PR with a fix for this issue: #18
Sorry, something went wrong.
No branches or pull requests
Minimal test case:
This should produce a string value for
foo
ofbar=\"baz\"
. The syntax is correct, with an escaped slash,\\
, followed by an escaped quote,\"
.Instead,
TOML::Parser
produces an error:Separating the two slash-escaped characters avoids the spurious error:
The text was updated successfully, but these errors were encountered: