Change "occasionally" to "accidentally"
This commit is contained in:
parent
a38ab40724
commit
5a3a465b0a
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ alert( '𝒳'.match(/[𝒳𝒴]/u) ); // 𝒳
|
||||||
|
|
||||||
Let's see one more example.
|
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
|
```js run
|
||||||
'𝒳'.match(/[𝒳-𝒴]/); // SyntaxError: invalid range in character class
|
'𝒳'.match(/[𝒳-𝒴]/); // SyntaxError: invalid range in character class
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue