Sha256: 497c07986b7cd5290d3540b210aca271deabb3fa03f292d382c4b713c7f4114d

Contents?: true

Size: 305 Bytes

Versions: 72

Compression:

Stored size: 305 Bytes

Contents

function stripExtension(filename) {
  return filename.substring(0, filename.lastIndexOf(".")) || filename;
}

function dirname(path) {
  return path ? path.match(/.*\//) : path;
}

function basename(path) {
  return path ? path.replace(/.*\//, "") : path;
}

export { stripExtension, dirname, basename };

Version data entries

72 entries across 72 versions & 1 rubygems

Version Path
coveragebook_components-0.19.8 app/assets/js/helpers/path.js
coveragebook_components-0.19.7 app/assets/js/helpers/path.js
coveragebook_components-0.19.6 app/assets/js/helpers/path.js
coveragebook_components-0.19.5 app/assets/js/helpers/path.js
coveragebook_components-0.19.4 app/assets/js/helpers/path.js
coveragebook_components-0.19.3 app/assets/js/helpers/path.js
coveragebook_components-0.19.2 app/assets/js/helpers/path.js
coveragebook_components-0.19.1 app/assets/js/helpers/path.js
coveragebook_components-0.19.0 app/assets/js/helpers/path.js
coveragebook_components-0.18.8 app/assets/js/helpers/path.js
coveragebook_components-0.18.7 app/assets/js/helpers/path.js
coveragebook_components-0.18.0 app/assets/js/helpers/path.js
coveragebook_components-0.17.7 app/assets/js/helpers/path.js
coveragebook_components-0.17.6 app/assets/js/helpers/path.js
coveragebook_components-0.17.5 app/assets/js/helpers/path.js
coveragebook_components-0.17.4 app/assets/js/helpers/path.js
coveragebook_components-0.17.3 app/assets/js/helpers/path.js
coveragebook_components-0.17.2 app/assets/js/helpers/path.js
coveragebook_components-0.17.1 app/assets/js/helpers/path.js
coveragebook_components-0.17.0 app/assets/js/helpers/path.js