Skip to content

Commit be2d655

Browse files
committed
docs: update readme
1 parent b6a82a1 commit be2d655

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Usage
3434
import {createParser} from 'css-selector-parser';
3535

3636
const parse = createParser();
37-
const selector = parse('a[href^="/"], .container:has(nav) > a[href]:nth-child(2)');
37+
const selector = parse('a[href^="/"], .container:has(nav) > a[href]:nth-child(2)::before');
3838

3939
console.log(selector);
4040
```
@@ -84,6 +84,10 @@ Produces:
8484
type: 'PseudoClass',
8585
name: 'nth-child',
8686
argument: { type: 'Formula', a: 0, b: 2 }
87+
},
88+
{
89+
type: 'PseudoElement',
90+
name: 'before'
8791
}
8892
],
8993
combinator: '>'

0 commit comments

Comments
 (0)