aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 157b4d2..b09bae8 100644
--- a/README.md
+++ b/README.md
@@ -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' ])