From 34c426391d2cd562488934de4d8bf7fbf8bb3ca6 Mon Sep 17 00:00:00 2001 From: Danny Lin Date: Sun, 7 Apr 2024 21:40:07 +0800 Subject: [PATCH] Make DimensionToken.toString() more compact --- parse-css.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse-css.js b/parse-css.js index b3d67b0..f2176b4 100644 --- a/parse-css.js +++ b/parse-css.js @@ -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() {