Merge pull request #1256 from paroche/patch-5

Change "occasionally" to "accidentally"
This commit is contained in:
Ilya Kantor 2019-08-21 10:14:44 +03:00 committed by GitHub
commit c109e35368
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -72,7 +72,7 @@ alert( '𝒳'.match(/[𝒳𝒴]/u) ); // 𝒳
Let's see one more example.
If we forget the `u` flag and occasionally use surrogate pairs, then we can get an error:
If we forget the `u` flag and accidentally use surrogate pairs, then we can get an error:
```js run
'𝒳'.match(/[𝒳-𝒴]/); // SyntaxError: invalid range in character class