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
main
This should twice show the same string:
import dedent from "dedent" console.log(dedent` This is broken: \\\$`); console.log(`This is correct: \\\$`);
It shows:
This is broken: \\$ This is correct: \$
See also: https://playcode.io/2050574
The text was updated successfully, but these errors were encountered:
Fun. This is the case in all dedent string versions I've tried, including the latest (1.5.3), 1.0.0, 0.6.0, and 0.1.0.
dedent
1.5.3
1.0.0
0.6.0
0.1.0
Digging into how the the tagged templates work internally:
const tagger = (strings) => strings; console.log(tagger`From tagger: \\\$`);
[ 'From tagger:\n\\$' ]
Seems like a bug in escapeSpecialCharacters. cc @G-Rath, what do you think?
escapeSpecialCharacters
Sorry, something went wrong.
isn't this what #69 is about? dedent is escaping the $ automatically even though it doesn't need to
$
👍 Fair. Since this issue has the cleaner repro, I'll mark that one as a duplicate of this. Thanks!
No branches or pull requests
Bug Report Checklist
main
branch of the repository.Expected
This should twice show the same string:
Actual
It shows:
Additional Info
See also: https://playcode.io/2050574
The text was updated successfully, but these errors were encountered: