diff options
| author | Akshay Nair <phenax5@gmail.com> | 2022-02-17 22:14:41 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-17 22:14:41 +0530 |
| commit | eb9cc0ee7c83cb825196768a0dce6a9afeb23339 (patch) | |
| tree | b8ad288238223066c552059437ec24b2a2755620 /README.md | |
| parent | 3a7ba0bd48a80445813bdb3ea2b0f22005489800 (diff) | |
| download | elxr-main.tar.gz elxr-main.zip | |
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -98,7 +98,7 @@ matchAll(/ [seperator true], [id \s\T]+ /, [ #### replaceAll ```js -// | Match for any number or any non-empty string or any object with `prop` is true +// | Replace any sequence of one or more numbers by their sum const replacer = (_, matches) => matches.value.reduce((a, b) => a + b, 0) replaceAll(/ \n+ /, replacer, [ 'start', 3, 5, 'mid', 2, 0, 4, 'end' ]) |
