Skip to content

Commit

Permalink
chore: add note for future-self
Browse files Browse the repository at this point in the history
  • Loading branch information
kaisermann authored Oct 2, 2020
1 parent 076e9f3 commit 3405224
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/globalifySelector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* We use a negative lookbehind assertion to prevent matching
* escaped combinators like `\~`.
*/
// TODO: maybe replace this ugly pattern with an actual selector parser? (https://github.com/leaverou/parsel, 2kb)
const combinatorPattern = /(?<!\\)(?:\\\\)*([ >+~,]\s*)(?![^[]+\]|\d)/g;

export function globalifySelector(selector: string) {
Expand Down

0 comments on commit 3405224

Please sign in to comment.