We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 276037a commit d6d1064Copy full SHA for d6d1064
src/modules/globalifySelector.ts
@@ -6,7 +6,7 @@
6
* escaped combinators like `\~`.
7
*/
8
// TODO: maybe replace this ugly pattern with an actual selector parser? (https://github.com/leaverou/parsel, 2kb)
9
-const combinatorPattern = /(?<!\\)(?:\\\\)*([ >+~,]\s*)(?![^[]+\]|\d)/g;
+const combinatorPattern = /(?<!\\)(?:\\\\)*([ >+~,]\s*)(?![^(]*\))(?![^[]+\]|\d)/g;
10
11
export function globalifySelector(selector: string) {
12
const parts = selector.trim().split(combinatorPattern);
0 commit comments