azure-pipelines-tasks-webdeployment-common 4.254.0 → 4.255.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/msdeployutility.js +4 -1
- package/package.json +1 -1
package/msdeployutility.js
CHANGED
|
@@ -105,12 +105,15 @@ exports.getMSDeployCmdArgs = getMSDeployCmdArgs;
|
|
|
105
105
|
function escapeQuotes(additionalArguments) {
|
|
106
106
|
const parsedArgs = parseAdditionalArguments(additionalArguments);
|
|
107
107
|
const separator = ",";
|
|
108
|
+
let commaSeperatedCSEnabled = tl.getPipelineFeature('CommaSeperatedConnectionString');
|
|
108
109
|
const formattedArgs = parsedArgs.map(function (arg) {
|
|
109
110
|
let formattedArg = '';
|
|
110
111
|
let equalsSignEncountered = false;
|
|
111
112
|
for (let i = 0; i < arg.length; i++) {
|
|
112
113
|
const char = arg.charAt(i);
|
|
113
|
-
|
|
114
|
+
let quotedStringCheck = (char == separator && equalsSignEncountered && ((formattedArg.startsWith("'") && formattedArg.endsWith("'")) || (formattedArg.startsWith('"') && formattedArg.endsWith('"'))));
|
|
115
|
+
let commaSeperatorCheck = commaSeperatedCSEnabled ? quotedStringCheck : (char == separator && equalsSignEncountered);
|
|
116
|
+
if (commaSeperatorCheck) {
|
|
114
117
|
equalsSignEncountered = false;
|
|
115
118
|
arg = arg.replace(formattedArg, escapeArg(formattedArg));
|
|
116
119
|
formattedArg = '';
|