From bd197037c02df63bd81b6289ecbd8769111ae7b9 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Mon, 23 Oct 2023 08:52:10 +0200 Subject: chore: substrings of length one (#2496) --- scripts/apidoc/typedoc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/apidoc/typedoc.ts b/scripts/apidoc/typedoc.ts index 28a3db85..4a39bd33 100644 --- a/scripts/apidoc/typedoc.ts +++ b/scripts/apidoc/typedoc.ts @@ -154,7 +154,7 @@ export function extractModuleName(module: DeclarationReflection): string { export function extractModuleFieldName(module: DeclarationReflection): string { const moduleName = extractModuleName(module); - return moduleName.substring(0, 1).toLowerCase() + moduleName.substring(1); + return moduleName[0].toLowerCase() + moduleName.substring(1); } export const MISSING_DESCRIPTION = 'Missing'; -- cgit v1.2.3