Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c109e35

Browse files
authored
Merge pull request #1256 from paroche/patch-5
Change "occasionally" to "accidentally"
2 parents dd3aede + 5a3a465 commit c109e35

File tree

1 file changed

+1
-1
lines changed
  • 9-regular-expressions/20-regexp-unicode

1 file changed

+1
-1
lines changed

‎9-regular-expressions/20-regexp-unicode/article.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ alert( 'X'.match(/[XY]/u) ); // X
7272

7373
Let's see one more example.
7474

75-
If we forget the `u` flag and occasionally use surrogate pairs, then we can get an error:
75+
If we forget the `u` flag and accidentally use surrogate pairs, then we can get an error:
7676

7777
```js run
7878
'X'.match(/[X-Y]/); // SyntaxError: invalid range in character class

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /