From e1e44878cb6877aa35da4f1b9eba3540a5085c38 Mon Sep 17 00:00:00 2001 From: Shintaro Mukai Date: Fri, 26 Nov 2021 09:39:49 +0900 Subject: Correct indentation Fixed sample code indentation. --- .../reference/global_objects/string/charat/index.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'files/ja/web/javascript/reference/global_objects') diff --git a/files/ja/web/javascript/reference/global_objects/string/charat/index.md b/files/ja/web/javascript/reference/global_objects/string/charat/index.md index 3ad73ae7a8..81ebbdb815 100644 --- a/files/ja/web/javascript/reference/global_objects/string/charat/index.md +++ b/files/ja/web/javascript/reference/global_objects/string/charat/index.md @@ -103,10 +103,10 @@ function getWholeChar(str, i) { throw 'High surrogate without following low surrogate'; } var next = str.charCodeAt(i + 1); - if (0xDC00 > next || next > 0xDFFF) { - throw 'High surrogate without following low surrogate'; - } - return str.charAt(i) + str.charAt(i + 1); + if (0xDC00 > next || next > 0xDFFF) { + throw 'High surrogate without following low surrogate'; + } + return str.charAt(i) + str.charAt(i + 1); } // Low surrogate (0xDC00 <= code && code <= 0xDFFF) if (i === 0) { @@ -156,10 +156,10 @@ function getWholeCharAndI(str, i) { throw 'High surrogate without following low surrogate' } let next = str.charCodeAt(i + 1) - if (0xDC00 > next || next > 0xDFFF) { - throw 'High surrogate without following low surrogate' - } - return [str.charAt(i) + str.charAt(i + 1), i + 1] + if (0xDC00 > next || next > 0xDFFF) { + throw 'High surrogate without following low surrogate' + } + return [str.charAt(i) + str.charAt(i + 1), i + 1] }   // Low surrogate (0xDC00 <= code && code <= 0xDFFF) -- cgit v1.2.3-54-g00ecf