Skip to content

Commit fd205fa

Browse files
committed
fix: selector split
1 parent bd0274f commit fd205fa

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/index.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -302,9 +302,8 @@
302302
}
303303

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

307-
let selectors = Selector.split(',');
308307
for (let j = 0; j < selectors.length; j++) {
309308
if (selectors[j].includes('@')) {
310309
selectors[j] = checkMediaQueries(selectors[j])
@@ -718,7 +717,7 @@
718717
for (let attribute of el.attributes) {
719718
let variable = attributes[attribute.name]
720719
if (variable) {
721-
object[variable] = attribute.value
720+
object[variable] = el.getAttribute(attribute.name)
722721
}
723722
}
724723

0 commit comments

Comments
 (0)