pxtorem-stylis-plugin
Version:
Fork of stylis-pxtorem, can be use with styled-components 6.x+
10 lines • 436 B
JavaScript
;
// excluding regex trick: http://www.rexegg.com/regex-best-trick.html
Object.defineProperty(exports, "__esModule", { value: true });
// Not anything inside double quotes
// Not anything inside single quotes
// Not anything inside url()
// Any digit followed by px
// !singlequotes|!doublequotes|!url()|pixelunit
exports.default = /"[^"]+"|'[^']+'|url\([^\)]+\)|(\d*\.?\d+)px/g;
//# sourceMappingURL=pixel-unit-regex.js.map