'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = getWithoutExt;

var _getExt;

function _load_getExt() {
  return _getExt = _interopRequireDefault(require('./get-ext'));
}

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function getWithoutExt(filename) {
  var ext = (0, (_getExt || _load_getExt()).default)(filename);
  return filename.substring(0, filename.length - ext.length - 1); // -1 to remove the '.'
}