"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
function _export(target, all) {
    for(var name in all)Object.defineProperty(target, name, {
        enumerable: true,
        get: Object.getOwnPropertyDescriptor(all, name).get
    });
}
_export(exports, {
    get removeExtension () {
        return removeExtension;
    },
    get removeExtensionDot () {
        return removeExtensionDot;
    },
    get withoutExt () {
        return withoutExt;
    }
});
const removeExtensionDot = (ext)=>{
    let i = ext.indexOf(".");
    if (i === -1) return ext;
    return ext.slice(i + 1);
};
const removeExtension = (filename)=>{
    const dotIndex = filename.lastIndexOf(".");
    if (dotIndex === -1) {
        return filename;
    }
    return filename.split(".").slice(0, -1).join(".");
};
const withoutExt = removeExtension;
