mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Move query history into extension (#19794)
* 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
This commit is contained in:
13
extensions/query-history/src/utils.ts
Normal file
13
extensions/query-history/src/utils.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* 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, ' ');
|
||||
}
|
||||
Reference in New Issue
Block a user