mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-21 22:21:33 +00:00
refactor: dedupe locale lowercase helpers
This commit is contained in:
@@ -26,6 +26,10 @@ export function lowercasePreservingWhitespace(value: string): string {
|
||||
return value.toLowerCase();
|
||||
}
|
||||
|
||||
export function localeLowercasePreservingWhitespace(value: string): string {
|
||||
return value.toLocaleLowerCase();
|
||||
}
|
||||
|
||||
export function resolvePrimaryStringValue(value: unknown): string | undefined {
|
||||
if (typeof value === "string") {
|
||||
return normalizeOptionalString(value);
|
||||
|
||||
Reference in New Issue
Block a user