diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-06-21 23:00:56 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-06-21 23:00:56 +0800 |
commit | d0ccb5d6183cf4b7188258cdb605c727b499d284 (patch) | |
tree | 2039a8c88fced4a0ed3188b9c01c29c22d050627 /deno/base/config.ts | |
parent | 89c414326a195d71d1f993af661f94798101e065 (diff) | |
download | crupest-mail.tar.gz crupest-mail.tar.bz2 crupest-mail.zip |
Diffstat (limited to 'deno/base/config.ts')
-rw-r--r-- | deno/base/config.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/deno/base/config.ts b/deno/base/config.ts index a5f5d86..96cc869 100644 --- a/deno/base/config.ts +++ b/deno/base/config.ts @@ -1,4 +1,4 @@ -import { camelCaseToKebabCase } from "./lib.ts"; +import { StringUtils } from "./lib.ts"; export interface ConfigDefinitionItem { readonly description: string; @@ -29,7 +29,9 @@ export class ConfigProvider<K extends string> { for (const [key, def] of Object.entries(definition as ConfigDefinition)) { map[key] = { ...def, - env: `${this.#prefix}-${camelCaseToKebabCase(key as string)}` + env: `${this.#prefix}-${ + StringUtils.camelCaseToKebabCase(key as string) + }` .replaceAll("-", "_") .toUpperCase(), }; |