Skip to content

Commit

Permalink
fix: logical attribute calc css variable logic error
Browse files Browse the repository at this point in the history
  • Loading branch information
Wxh16144 committed Feb 29, 2024
1 parent 587db96 commit b58b081
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/legacyLogicalProperties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function splitValues(

const splitStyle = (importantCells ? importantCells[1] : rawStyle)
.trim()
.split(/\s+/);
.split(/(?<!\(.*)\s+(?![^\(]*\))/);

// Combine styles split in brackets, like `calc(1px + 2px)`
let temp = '';
Expand Down

0 comments on commit b58b081

Please sign in to comment.