app/assets/js/helpers/path.js in coveragebook_components-0.5.0 vs app/assets/js/helpers/path.js in coveragebook_components-0.5.1

- old
+ new

@@ -1,5 +1,13 @@ function stripExtension(filename) { return filename.substring(0, filename.lastIndexOf(".")) || filename; } -export { stripExtension }; +function dirname(path) { + return path ? path.match(/.*\//) : path; +} + +function basename(path) { + return path ? path.replace(/.*\//, "") : path; +} + +export { stripExtension, dirname, basename };