We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fb8aa3 commit b1b85edCopy full SHA for b1b85ed
.gitignore
@@ -1,3 +1,4 @@
1
+.idea
2
dist/
3
.DS_Store
4
node_modules/
src/app/converter/converter.ts
@@ -86,7 +86,11 @@ export class Converter {
86
87
let contents = inputs.map((filePath) => fs.readFileSync(String(filePath)));
88
89
- return contents.join(LINE_BREAK);
+ let strContents = contents.join(LINE_BREAK);
90
+ strContents = strContents.replace(/\/\*[\w\W\r\n]*?\*\//g, '');
91
+ strContents = strContents.split(LINE_BREAK).filter(v=> v.indexOf('//') === -1).join(LINE_BREAK);
92
+
93
+ return strContents;
94
}
95
96
0 commit comments