Closed demiazz closed 9 years ago
@MoOx, I update PR with your recommendations.
@MoOx I revert all changes about test in begin of transformDecl
, and add indexOf
.
I write simple benchmark for String#indexOf
and RegExp#test
for our case. On node.js String#indexOf
slower than RegExp#test
. But, on io.js RegExp#test
slower than String#indexOf
.
This is my small benchmark: https://gist.github.com/demiazz/b82fd832327367ceba04
Hi, @MoOx!
I find bug in
postcss-color-function
when use my own project-only plugin, which processhover-color(<color>)
patterns.postcss-color-function
findcolor
inhover-color
definition, and process them. For example:I fix checks in
postcss-color-function
and add additional test cases in fixtures.