Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'use strict';
- const getPathBasename = function(imagepath) {
- return imagepath.match(/(?!.*[\\\/])(.*)\./)[1];
- }
- module.exports = getPathBasename;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement