-
-
Notifications
You must be signed in to change notification settings - Fork 168
Description
What version of prettier-plugin-tailwindcss
are you using?
v0.6.4
What version of Tailwind CSS are you using?
v3.4.3
What version of Node.js are you using?
v20.12.1
What package manager are you using?
pnpm
What operating system are you using?
Linux / Ubuntu
Reproduction URL
Because the reproduction code is so small I skipped creating a repo. If you want me to I can make one though.
Code at start:
const Test = () => {
return <div className="after:content-['\2026']" />;
};
Code after 1st run:
const Test = () => {
return <div className="after:content-['\\2026']" />;
};
Code after 2nd run:
const Test = () => {
return <div className="after:content-['\\\\2026']" />;
};
Describe your issue
I just updated from 0.5.10 to 0.6.4 and suddenly the backslash in the code snippet above kept multiplying itself(s). Versions 0.6.4, 0.6.3, 0.6.2 are affected. 0.6.1 is ok.
I did not except the backslash(es) for the octal escape sequence to be escaped again and again.
Repro:
- Install prettier and plugin
- Create file with content from above
- Run prettier multiple times and set the backslashes comin in
terraelise, karlhorky and Sec-ant
Metadata
Metadata
Assignees
Labels
No labels