in templates/legacy/windows-admin-center-extension-template/gulps/gulp-ps-code/ps-code-convert.js [45:87]
var _loop_1 = function (key) {
var script = '';
var content = current[key];
var name_1 = this_1.jsonName(key);
script = '##' + name_1 + '##:' + key + '\n';
var removeComments = this_1.options.noComments;
if (content.indexOf(PsCodeConverter.removeCommentsFalse) > 0) {
removeComments = false;
}
else if (content.indexOf(PsCodeConverter.removeCommentsTrue) > 0) {
removeComments = true;
}
var skipping = false;
var lines = content.split('\r');
lines.forEach(function (value, index, array) {
var text = value.replace('\n', '');
if (removeComments) {
var process_1 = true;
text = text.trim();
if (text.startsWith(PsCodeConverter.commentStart)) {
skipping = true;
}
if (skipping) {
process_1 = false;
if (text.endsWith(PsCodeConverter.commentEnd)) {
skipping = false;
}
}
if (process_1 && !text.startsWith(PsCodeConverter.comment) && text.length > 0) {
script += text + '\n';
}
}
else {
script += text + '\n';
}
});
var data = JSON.stringify(script);
data = this_1.replaceAll(data, '\'', '\\u0027');
data = this_1.replaceAll(data, '<', '\\u003c');
data = this_1.replaceAll(data, '>', '\\u003e');
data = this_1.replaceAll(data, '&', '\\u0026');
this_1.addToContent(name_1, data, 1);
};