"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var types_1 = require("../types");
exports.langDeterminer = function (filename) {
    var lang = '';
    if (filename) {
        if (types_1.JSReg.test(filename)) {
            lang = types_1.JS;
        }
        else if (types_1.HTMLReg.test(filename)) {
            lang = types_1.HTML;
        }
        else if (types_1.CSSReg.test(filename)) {
            lang = types_1.CSS;
        }
        else if (types_1.TSReg.test(filename)) {
            lang = types_1.TS;
        }
    }
    return lang;
};
