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