Merge pull request #2383 from vsemozhetbyt/patch-12

Fix typo in 9.17 (Methods of RegExp and String)
This commit is contained in:
Ilya Kantor 2020-12-13 20:08:22 +03:00 committed by GitHub
commit 92cdba0a00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -142,7 +142,7 @@ To find all hyphens, we need to use not the string `"-"`, but a regexp `pattern:
alert( '12-34-56'.replace( *!*/-/g*/!*, ":" ) ) // 12:34:56
```
The second argument is a replacement string. We can use special character in it:
The second argument is a replacement string. We can use special characters in it:
| Symbols | Action in the replacement string |
|--------|--------|