Skip to content

Commit

Permalink
Fix README example for highlight function (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhusz authored May 26, 2024
1 parent efb877d commit d70ec84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,14 @@ test(parse('name:David'), persons[0]);
Highlight matching fields and substrings:

```ts
test(highlight('name:john'), persons[0]);
highlight(parse('name:john'), persons[0]);
// [
// {
// path: 'name',
// query: /(John)/,
// }
// ]
test(highlight('height:180'), persons[0]);
highlight(parse('height:180'), persons[0]);
// [
// {
// path: 'height',
Expand Down

0 comments on commit d70ec84

Please sign in to comment.