aboutsummaryrefslogtreecommitdiff
path: root/_mint/parser/comments.js
blob: 451571ca74ba23452313def2e82243d1d7fc70f3 (plain)
1
2
3
4
5
6
7
8
9
10
const MintParser = require('./base');

module.exports = class MintParserComments extends MintParser {
    parse(file) {
        file = file.replace(/\/\*[\s\S]*?\*\//g, "");
        file = file.replace(/\/\/(.*)$/gm, "");

        return file
    }
}