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