diff options
author | Shintaro Mukai <shintaro@mukai.systems> | 2021-11-26 09:39:49 +0900 |
---|---|---|
committer | Masahiro FUJIMOTO <mfujimot@gmail.com> | 2021-11-29 16:27:52 +0900 |
commit | e1e44878cb6877aa35da4f1b9eba3540a5085c38 (patch) | |
tree | fb365196ed5913172e865cbcea40e5889ed01b47 | |
parent | 341d703a9cbfff50cfbe6a8d19fd5666c6ded035 (diff) | |
download | translated-content-e1e44878cb6877aa35da4f1b9eba3540a5085c38.tar.gz translated-content-e1e44878cb6877aa35da4f1b9eba3540a5085c38.tar.bz2 translated-content-e1e44878cb6877aa35da4f1b9eba3540a5085c38.zip |
Correct indentation
Fixed sample code indentation.
-rw-r--r-- | files/ja/web/javascript/reference/global_objects/string/charat/index.md | 16 |
1 files changed, 8 insertions, 8 deletions
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) |