test_fauna_netlify/functions/utils/getId.js
2019-11-10 10:16:26 -06:00

3 lines
No EOL
88 B
JavaScript

module.exports = function getId(urlPath) {
return urlPath.match(/([^\/]*)\/*$/)[0]
}