ghost-portal/packages/apps-config/src/ui/util.ts
Jaco b47f6cbacf
Check endpoints sort order (#5564)
* Check endpoints sort order

* colors adjust

* Adjust

* Sorting via objects

* linting

* shared santize
2021-06-11 17:41:03 +02:00

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, ' ') || '';
}