From 0490fa2549f7e13e9ef7adc6ceedefcf9ddb0dbc Mon Sep 17 00:00:00 2001 From: Alexey Pyltsyn Date: Mon, 13 May 2019 22:35:14 +0300 Subject: [PATCH] Fix typos --- 1-js/13-modules/01-modules-intro/article.md | 4 ++-- 2-ui/5-loading/02-script-async-defer/article.md | 4 ++-- 9-regular-expressions/20-regexp-unicode/article.md | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/1-js/13-modules/01-modules-intro/article.md b/1-js/13-modules/01-modules-intro/article.md index af2b427a..b19fb284 100644 --- a/1-js/13-modules/01-modules-intro/article.md +++ b/1-js/13-modules/01-modules-intro/article.md @@ -86,7 +86,7 @@ That's the correct variant: [codetabs src="scopes-working" height="140" current="hello.js"] -In the browser, independant top-level scope also exists for each ` diff --git a/9-regular-expressions/20-regexp-unicode/article.md b/9-regular-expressions/20-regexp-unicode/article.md index 68eebca8..95fac0fb 100644 --- a/9-regular-expressions/20-regexp-unicode/article.md +++ b/9-regular-expressions/20-regexp-unicode/article.md @@ -80,7 +80,7 @@ If we forget the `u` flag and occasionally use surrogate pairs, then we can get Normally, regexps understand `[a-z]` as a "range of characters with codes between codes of `a` and `z`. -But without `u` flag, surrogate pairs are assumed to be a "pair of independant characters", so `[𝒳-𝒴]` is like `[<55349><56499>-<55349><56500>]` (replaced each surrogate pair with code points). Now we can clearly see that the range `56499-55349` is unacceptable, as the left range border must be less than the right one. +But without `u` flag, surrogate pairs are assumed to be a "pair of independent characters", so `[𝒳-𝒴]` is like `[<55349><56499>-<55349><56500>]` (replaced each surrogate pair with code points). Now we can clearly see that the range `56499-55349` is unacceptable, as the left range border must be less than the right one. Using the `u` flag makes it work right: