Skip to content

Commit 71460ef

Browse files
docs: translate comments to English in text.ts and improve indentation function documentation
1 parent b845637 commit 71460ef

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

text.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { isString } from "@core/unknownutil/is/string";
22

3-
/** インデント数を数える */
3+
/** Count the number of leading whitespace characters (indentation level) */
44
export const getIndentCount = (text: string): number =>
55
text.match(/^(\s*)/)?.[1]?.length ?? 0;
66

7-
/** 指定した行の配下にある行の数を返す
7+
/** Count the number of subsequent lines that are indented under the specified line
88
*
9-
* @param index 指定したい行の行番号
10-
* @param lines 行のリスト
9+
* @param index Line number of the target line
10+
* @param lines List of lines (can be strings or objects with text property)
1111
*/
1212
export const getIndentLineCount = (
1313
index: number,

0 commit comments

Comments
 (0)