Skip to content

Commit

Permalink
fix: Transform within default variables cuth#79
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolayMakhonin committed Oct 2, 2022
1 parent 1226490 commit b13b2da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pixel-unit-regex.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
// Any digit followed by px
// !singlequotes|!doublequotes|!url()|pixelunit

module.exports = /"[^"]+"|'[^']+'|url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;
module.exports = /"[^"]+"|'[^']+'|url\([^)]+\)|((?<=^|[^\w-])-?\d*\.?\d+)px\b/g;

0 comments on commit b13b2da

Please sign in to comment.