postcss-calc
postcss-calc copied to clipboard
fix: do not consume number token if expression ends with '.'
Fix #132
\b also matches '.', so the regex for the number expression would match 41 in 41.7rpx. Then UNKNOWN_DIMENSION would match .7rpx and create the invalid sequence NumberExpression, UnknownDimension.