3 lines
No EOL
88 B
JavaScript
3 lines
No EOL
88 B
JavaScript
module.exports = function getId(urlPath) {
|
|
return urlPath.match(/([^\/]*)\/*$/)[0]
|
|
} |