Skip to content

Commit e2ac312

Browse files
authored
Merge pull request #3659 from eedrxs/patch-1
Fixed grammar error in regex-groups article.md
2 parents 774d0c1 + aacfc93 commit e2ac312

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

9-regular-expressions/11-regexp-groups/article.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,9 @@ alert(results[0]); // <h1>,h1 (1st tag)
209209
alert(results[1]); // <h2>,h2 (2nd tag)
210210
```
211211

212-
As we can see, the first difference is very important, as demonstrated in the line `(*)`. We can't get the match as `results[0]`, because that object isn't pseudoarray. We can turn it into a real `Array` using `Array.from`. There are more details about pseudoarrays and iterables in the article <info:iterable>.
212+
As we can see, the first difference is very important, as demonstrated in the line `(*)`. We can't get the match as `results[0]`, because that object is a pseudoarray. We can turn it into a real `Array` using `Array.from`. There are more details about pseudoarrays and iterables in the article <info:iterable>.
213213

214-
There's no need in `Array.from` if we're looping over results:
214+
There's no need for `Array.from` if we're looping over results:
215215

216216
```js run
217217
let results = '<h1> <h2>'.matchAll(/<(.*?)>/gi);

0 commit comments

Comments
 (0)