1 | // excluding regex trick: http://www.rexegg.com/regex-best-trick.html
|
2 |
|
3 | // Not anything inside double quotes
|
4 | // Not anything inside single quotes
|
5 | // Not anything inside url()
|
6 | // Any digit followed by px
|
7 | // !singlequotes|!doublequotes|!url()|pixelunit
|
8 |
|
9 | module.exports = /"[^"]+"|'[^']+'|url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;
|