(filename)
| 488 | } |
| 489 | |
| 490 | function getClassDeclarationRegex(filename) { |
| 491 | return new RegExp(`([^]*?class\\s+${filename.split('.')[0]}[\\s\\w]*{)([^]*})`, 'm'); |
| 492 | } |
| 493 | |
| 494 | function removeComments(content) { |
| 495 | return content.replace(/\/\*[^]*?\*\/|([^\\:]|^)\/\/.*$/gm, ''); |