aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2022-02-17 19:31:07 +0530
committerAkshay Nair <phenax5@gmail.com>2022-02-17 19:31:07 +0530
commit996c8ad9de8186417d040fa59f189208b4311375 (patch)
treed0227a9227947f82ff9b2e7c92287a571f854c33 /README.md
parent79813bc3b5ea78bffcc8f3a48ff6ecd15d966bd0 (diff)
downloadelxr-996c8ad9de8186417d040fa59f189208b4311375.tar.gz
elxr-996c8ad9de8186417d040fa59f189208b4311375.zip
docs: readme example update
Diffstat (limited to 'README.md')
-rw-r--r--README.md7
1 files changed, 4 insertions, 3 deletions
diff --git a/README.md b/README.md
index 2380be8..2acdfba 100644
--- a/README.md
+++ b/README.md
@@ -45,12 +45,12 @@ Whitespaces are ignored (except within literals)
```js
// | Match for any number or any non-empty string or any object with `prop` is true
-matchAll(/ \n | \s\T | [prop true] /, [null, 23, 'wow', '', { prop: true }, { prop: false } ]
+matchAll(/ \n | \s\T /, [null, 23, '', 'wow', false ]
+
// > {
// groups: [
// { index: 1, value: 23 }, // \n
-// { index: 2, value: 'wow' }, // \s\T
-// { index: 4, value: { prop: true } }, // [prop true]
+// { index: 3, value: 'wow' }, // \s\T
// ]
// }
```
@@ -67,6 +67,7 @@ matchAll(/ [seperator true], [id \s\T]+ /, [
{ id: '5' },
{ id: '6' },
])
+
// > {
// groups: [
// {