mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-13 17:22:15 -05:00
fixing a couple codeql warnings about incomplete string replacement (#24518)
This commit is contained in:
@@ -71,7 +71,7 @@ export class SqlRPackageManageProvider extends SqlPackageManageProviderBase impl
|
|||||||
|
|
||||||
if (connection) {
|
if (connection) {
|
||||||
connectionParts.push(utils.getKeyValueString('driver', `"${constants.supportedODBCDriver}"`));
|
connectionParts.push(utils.getKeyValueString('driver', `"${constants.supportedODBCDriver}"`));
|
||||||
let server = connection.serverName.replace('\\', '\\\\');
|
let server = connection.serverName.replace(/\\/g, '\\\\');
|
||||||
if (databaseName) {
|
if (databaseName) {
|
||||||
connectionParts.push(utils.getKeyValueString('database', `"${databaseName}"`));
|
connectionParts.push(utils.getKeyValueString('database', `"${databaseName}"`));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ export async function getUniqueFileName(fileName: string, folderPath?: string):
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function escapeClosingBrackets(str: string): string {
|
export function escapeClosingBrackets(str: string): string {
|
||||||
return str.replace(']', ']]');
|
return str.replace(/]/g, ']]');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user