js-comments-eraser 1.1.6 → 1.1.7
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/index-multi.js +3 -2
- package/package.json +1 -1
package/index-multi.js
CHANGED
|
@@ -27,8 +27,9 @@ function removeCommentsFromFile(fileContent) {
|
|
|
27
27
|
.replace(/(http:--)/gm, 'http://')
|
|
28
28
|
.replace(/(https:--)/gm, 'https://');
|
|
29
29
|
|
|
30
|
-
const falseIfBlockRegex = /if\s*\(\s*false\s*\)\s*\{[\s\S]*?\}/gm;
|
|
31
|
-
const step4 = step3
|
|
30
|
+
// const falseIfBlockRegex = /if\s*\(\s*false\s*\)\s*\{[\s\S]*?\}/gm;
|
|
31
|
+
const step4 = step3
|
|
32
|
+
// .replace(falseIfBlockRegex, '');
|
|
32
33
|
|
|
33
34
|
return step4;
|
|
34
35
|
}
|