moved utils
This commit is contained in:
parent
7328964564
commit
bee3d86df7
6 changed files with 2690 additions and 6 deletions
3
functions/utils/getId.js
Normal file
3
functions/utils/getId.js
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
module.exports = function getId(urlPath) {
|
||||
return urlPath.match(/([^\/]*)\/*$/)[0]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue