Skip to content

Commit

Permalink
fix #392 not coercing static class text to string
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansolid committed Jan 28, 2025
1 parent 1f81838 commit b5ef777
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ function transformAttributes(path, results, info) {
if (!value) return;
let text = isBoolean ? "" : value.value;
if (key === "style" || key === "class") {
text = trimWhitespace(text);
text = trimWhitespace(String(text));
if (key === "style") {
text = text.replace(/; /g, ";").replace(/: /g, ":");
}
Expand Down

0 comments on commit b5ef777

Please sign in to comment.