fix
This commit is contained in:
parent
78dfe76a43
commit
bed627ad82
1
index.js
1
index.js
@ -27,6 +27,7 @@ module.exports = function main (
|
||||
for (const f of fs.readdirSync (modulefolder)) {
|
||||
const regex = /(?<method>.*?)-(?<url>.*?)\.js/u;
|
||||
const { groups } = regex.exec (f);
|
||||
if ('undefined' !== typeof subdir)
|
||||
groups.url = `/${subdir}/${groups.url}/`;
|
||||
groups.url = groups.url
|
||||
.replace (/^\/[^/]*\/root/iu, '/')
|
||||
|
Reference in New Issue
Block a user