We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b845637 commit 71460efCopy full SHA for 71460ef
text.ts
@@ -1,13 +1,13 @@
1
import { isString } from "@core/unknownutil/is/string";
2
3
-/** インデント数を数える */
+/** Count the number of leading whitespace characters (indentation level) */
4
export const getIndentCount = (text: string): number =>
5
text.match(/^(\s*)/)?.[1]?.length ?? 0;
6
7
-/** 指定した行の配下にある行の数を返す
+/** Count the number of subsequent lines that are indented under the specified line
8
*
9
- * @param index 指定したい行の行番号
10
- * @param lines 行のリスト
+ * @param index Line number of the target line
+ * @param lines List of lines (can be strings or objects with text property)
11
*/
12
export const getIndentLineCount = (
13
index: number,
0 commit comments