Skip to content

Commit

Permalink
fix: selector split
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Feb 12, 2024
1 parent bd0274f commit fd205fa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,9 +302,8 @@
}

if (Selector) {
// let selectors = Selector.split(/,(?![^()]*\))/g);
let selectors = Selector.split(/,(?![^()]*\))/g);

let selectors = Selector.split(',');
for (let j = 0; j < selectors.length; j++) {
if (selectors[j].includes('@')) {
selectors[j] = checkMediaQueries(selectors[j])
Expand Down Expand Up @@ -718,7 +717,7 @@
for (let attribute of el.attributes) {
let variable = attributes[attribute.name]
if (variable) {
object[variable] = attribute.value
object[variable] = el.getAttribute(attribute.name)
}
}

Expand Down

0 comments on commit fd205fa

Please sign in to comment.