Skip to content

Commit

Permalink
Make DimensionToken.toString() more compact
Browse files Browse the repository at this point in the history
  • Loading branch information
danny0838 committed Apr 7, 2024
1 parent e72cb73 commit 34c4263
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parse-css.js
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ class DimensionToken extends CSSParserToken {
this.sign = sign;
}
toString() {
return `DIM(${formatNumber(this.value, this.sign)}, ${JSON.stringify(this.unit)})`;
return `DIM(${formatNumber(this.value, this.sign)},${JSON.stringify(this.unit)})`;
}
toJSON() { return {type:this.type, value:this.value, isInteger:this.isInteger, unit:this.unit, sign:this.sign}; }
toSource() {
Expand Down

0 comments on commit 34c4263

Please sign in to comment.