Skip to content

Strip leading/trailing whitespace from CSS exprs

Yorick Peterse requested to merge remove-css-whitespace into master

When tokenising CSS expressions we now strip leading and trailing whitespace from the input string. This is performed without any checks as a check + String#strip ended up being slower compared to just running String#strip. On top of that we cache expressions anyway, so the overhead of String#strip is very small.

Fixes #187 (closed)

Merge request reports