diff --git a/src/daemon/service-path-policy.ts b/src/daemon/service-path-policy.ts index d808de78daa..ffe5b6b24c6 100644 --- a/src/daemon/service-path-policy.ts +++ b/src/daemon/service-path-policy.ts @@ -1,13 +1,10 @@ import path from "node:path"; +import { normalizeLowercaseStringOrEmpty } from "../shared/string-coerce.js"; function getPathModule(platform: NodeJS.Platform) { return platform === "win32" ? path.win32 : path.posix; } -function normalizeLowercaseStringOrEmpty(value: string | undefined): string { - return value?.trim().toLowerCase() ?? ""; -} - export function normalizeServicePathEntry(entry: string, platform: NodeJS.Platform): string { const pathModule = getPathModule(platform); const normalized = pathModule.normalize(entry).replaceAll("\\", "/");