@mitre/inspec-objects 0.0.26 → 0.0.27
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/lib/utilities/update.js +6 -2
- package/mitre-inspec-objects-v0.0.27.tgz +0 -0
- package/package.json +1 -1
- package/package-lock.json +0 -8881
package/lib/utilities/update.js
CHANGED
|
@@ -65,7 +65,7 @@ function getExistingDescribeFromControl(control) {
|
|
|
65
65
|
const charSplit = word.split('');
|
|
66
66
|
charSplit.forEach((char, index) => {
|
|
67
67
|
if (char === '"' && charSplit[index - 1] !== '\\') {
|
|
68
|
-
if (!currentQuoteEscape) {
|
|
68
|
+
if (!currentQuoteEscape || !inQuoteBlock) {
|
|
69
69
|
currentQuoteEscape = '"';
|
|
70
70
|
}
|
|
71
71
|
if (currentQuoteEscape === '"') {
|
|
@@ -73,7 +73,7 @@ function getExistingDescribeFromControl(control) {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
else if (char === "'" && charSplit[index - 1] !== '\\') {
|
|
76
|
-
if (!currentQuoteEscape) {
|
|
76
|
+
if (!currentQuoteEscape || !inQuoteBlock) {
|
|
77
77
|
currentQuoteEscape = "'";
|
|
78
78
|
}
|
|
79
79
|
if (currentQuoteEscape === "'") {
|
|
@@ -82,6 +82,10 @@ function getExistingDescribeFromControl(control) {
|
|
|
82
82
|
}
|
|
83
83
|
});
|
|
84
84
|
});
|
|
85
|
+
if (control.id === 'SV-204392') {
|
|
86
|
+
console.log(line);
|
|
87
|
+
console.log(inQuoteBlock);
|
|
88
|
+
}
|
|
85
89
|
});
|
|
86
90
|
return existingDescribeBlock;
|
|
87
91
|
}
|
|
Binary file
|