From 59d791b9d1688155a8e25bdff72a29bf833bbccb Mon Sep 17 00:00:00 2001 From: zhangbao Date: Sun, 5 Apr 2020 22:07:27 +0800 Subject: [PATCH] fix typo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. then we don't need Array.from, разумеется, не нужен. -> then we don't need Array.from any more. 2. delete the extra table header --- 9-regular-expressions/17-regexp-methods/article.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/9-regular-expressions/17-regexp-methods/article.md b/9-regular-expressions/17-regexp-methods/article.md index ef578020..d4d00b69 100644 --- a/9-regular-expressions/17-regexp-methods/article.md +++ b/9-regular-expressions/17-regexp-methods/article.md @@ -86,7 +86,7 @@ alert( firstMatch.index ); // 0 alert( firstMatch.input ); //

Hello, world!

``` -If we use `for..of` to loop over `matchAll` matches, then we don't need `Array.from`, разумеется, не нужен. +If we use `for..of` to loop over `matchAll` matches, then we don't need `Array.from` any more. ## str.split(regexp|substr, limit) @@ -144,7 +144,6 @@ alert( '12-34-56'.replace( *!*/-/g*/!*, ":" ) ) // 12:34:56 The second argument is a replacement string. We can use special character in it: -| Symbols | Action in the replacement string | | Symbols | Action in the replacement string | |--------|--------| |`$&`|inserts the whole match|