From 5a3a465b0a3b512bb97222b7feddfa1b34293c1c Mon Sep 17 00:00:00 2001 From: paroche <46547072+paroche@users.noreply.github.com> Date: Tue, 20 Aug 2019 17:05:33 -0600 Subject: [PATCH] Change "occasionally" to "accidentally" --- 9-regular-expressions/20-regexp-unicode/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/9-regular-expressions/20-regexp-unicode/article.md b/9-regular-expressions/20-regexp-unicode/article.md index 7eb3a1e0..dc8c60cb 100644 --- a/9-regular-expressions/20-regexp-unicode/article.md +++ b/9-regular-expressions/20-regexp-unicode/article.md @@ -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