signal-desktop/ts/util/normalizeDeviceName.ts

8 lines
272 B
TypeScript
Raw Normal View History

2021-12-16 15:02:22 +00:00
// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
export function normalizeDeviceName(rawDeviceName: string): string {
// We want to do additional normalization here. See DESKTOP-2845.
return rawDeviceName.trim().replace(/\0/g, '');
}