Merge pull request #2611 from AhmedElaguab/master

Fix typo
This commit is contained in:
Ilya Kantor 2021-06-13 11:02:45 +03:00 committed by GitHub
commit 5f927bd7dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,7 +65,7 @@ There are 3 differences from `match`:
1. It returns an iterable object with matches instead of an array. We can make a regular array from it using `Array.from`.
2. Every match is returned as an array with capturing groups (the same format as `str.match` without flag `pattern:g`).
3. If there are no results, it returns not `null`, but an empty iterable object.
3. If there are no results, it returns an empty iterable object instead of `null`.
Usage example: