mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-18 03:21:36 -04:00
* initial * more * Remove connectionId * cleanup * cleanup * Remove core contributions, add to panel by default * Add enabled state * Update config * cleanup * Move * Remove newlines * update README
14 lines
640 B
TypeScript
14 lines
640 B
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
/**
|
|
* Removes all newlines from the given string, replacing them with spaces
|
|
* @param str The original string
|
|
* @returns The string with all newlines replaced by spaces
|
|
*/
|
|
export function removeNewLines(str: string): string {
|
|
return str.replace(/\r\n/g, ' ').replace(/\n/g, ' ');
|
|
}
|