Skip to content
New issue

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

Special characters not processed in double quoted string #21

Open
Wastack opened this issue Oct 2, 2022 · 0 comments
Open

Special characters not processed in double quoted string #21

Wastack opened this issue Oct 2, 2022 · 0 comments

Comments

@Wastack
Copy link

Wastack commented Oct 2, 2022

rfc-6.1.3:

Within a double-quoted string (enclosed within " "), a backslash
character introduces a representation of a special character, which
depends on the character that immediately follows the backslash:

\n      newline
\t      a tab character
\"      a double quote
\\      a single backslash

The backslash MUST NOT be followed by any other character.

Expected
the following double quoted string: a\nb\nc should be translated to:

a
b
c

Actual
The contents of the token is: a\nb\nc

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

No branches or pull requests

1 participant