From 996c8ad9de8186417d040fa59f189208b4311375 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Thu, 17 Feb 2022 19:31:07 +0530 Subject: docs: readme example update --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'README.md') 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: [ // { -- cgit v1.3.1