7 lines
218 B
TypeScript
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, ' ') || '';
|
|
}
|