Skip to content

Commit

Permalink
Update src/core/parse.js
Browse files Browse the repository at this point in the history
Co-authored-by: Kavindu Santhusa <[email protected]>
  • Loading branch information
realStandal and ksenginew authored Jan 21, 2022
1 parent 4e70399 commit 7a2217f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export let parse = (obj, selector) => {
);
} else if (val != undefined) {
// Convert all but CSS variables
key = key.startsWith('--') ? key : key.replace(/[A-Z]/g, '-$&').toLowerCase();
key = /^--/.test(key) ? key : key.replace(/[A-Z]/g, '-$&').toLowerCase();
// Push the line for this property
current += parse.p
? // We have a prefixer and we need to run this through that
Expand Down

0 comments on commit 7a2217f

Please sign in to comment.