ghost-portal/packages/apps-config/src/ui/util.ts
2022-01-01 09:30:15 +02:00

7 lines
218 B
TypeScript

// Copyright 2017-2022 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
export function sanitize (value?: string): string {
return value?.toLowerCase().replace(/-/g, ' ') || '';
}