Skip to content

Commit 88ba2c2

Browse files
authored
Merge pull request #2 from AhmedElaguab/AhmedElaguab-fix-typo
Update article.md
2 parents cf33b67 + f8313dc commit 88ba2c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

9-regular-expressions/17-regexp-methods/article.md

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

0 commit comments

Comments
 (0)