Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. 'use strict';
  2.  
  3.  
  4.  
  5. const getPathBasename = function(imagepath) {
  6.  
  7.  
  8.  
  9. return imagepath.match(/(?!.*[\\\/])(.*)\./)[1];
  10.  
  11.  
  12.  
  13. }
  14.  
  15.  
  16.  
  17. module.exports = getPathBasename;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement