* Check endpoints sort order * colors adjust * Adjust * Sorting via objects * linting * shared santize
7 lines
218 B
TypeScript
7 lines
218 B
TypeScript
// Copyright 2017-2021 @polkadot/apps-config authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
export function sanitize (value?: string): string {
|
|
return value?.toLowerCase().replace(/-/g, ' ') || '';
|
|
}
|