4 lines
86 B
JavaScript
4 lines
86 B
JavaScript
|
|
export default function getId(urlPath) {
|
|
return urlPath.match(/([^\/]*)\/*$/)[0]
|
|
}
|