mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-25 17:23:10 -05:00
Adding search, zoom, custom zoom and additional stylings to showplan (#18255)
* Lot of changes -Updating azdata to 0.0.13 -Updating prop views on node clicks -Context menu on graphs -Updating edge color on theme -Scrolling graph control like ssms -Zooming in, out and custom zoom on graph -Custom zoom widget -Node search widget * Fixing hygine errors * Code cleanup * Fixing action name * Renaming actions * equals dropdown * fixing tooltip * Code cleanup Fixing sorting function Adding functionality for replacement strings * Removing internal facing props from azdata proposed * Fixing hygine issue * Fixing web package hygiene * Updating yarn lock files * Fixing initial click
This commit is contained in:
@@ -74,7 +74,10 @@ export function endsWith(haystack: string, needle: string): boolean {
|
||||
|
||||
/**
|
||||
* Remove line breaks/eols from a string across different operating systems.
|
||||
* @param str target strings that needs line breaks removed.
|
||||
* @param replace optional string that replaces the line breaks.
|
||||
* @returns string with removed line breaks.
|
||||
*/
|
||||
export function removeLineBreaks(str: string): string {
|
||||
return str.replace(/(\r\n|\n|\r)/gm, '');
|
||||
export function removeLineBreaks(str: string, replace?: string): string {
|
||||
return str.replace(/(\r\n|\n|\r)/gm, replace ?? '');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user