-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Open
Labels
lang:css/scss/lessIssues affecting CSS, Less or SCSSIssues affecting CSS, Less or SCSSscope:dependencyIssues that cannot be solved inside Prettier itself, and must be fixed in a dependencyIssues that cannot be solved inside Prettier itself, and must be fixed in a dependency
Description
a {
k: "#{".5"}";
}
is turned into:
a {
k: "#{"0.5"}";
}
Expected: The inner string, ".5"
, should stay unchanged.
This happens because postcss-values-parser does not support interpolations in strings, so it sees the property value as the string "#{"
followed by the number .5
followed by the string "}"
. shellscape/postcss-values-parser#37
Metadata
Metadata
Assignees
Labels
lang:css/scss/lessIssues affecting CSS, Less or SCSSIssues affecting CSS, Less or SCSSscope:dependencyIssues that cannot be solved inside Prettier itself, and must be fixed in a dependencyIssues that cannot be solved inside Prettier itself, and must be fixed in a dependency