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 Jul 20, 2024
1 parent ae32413 commit ea0c6a9
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 ea0c6a9

Please sign in to comment.