Fix forum link.
This commit is contained in:
parent
5c0c2ab842
commit
0c2cad6964
@ -52,6 +52,12 @@ module.exports = async () => {
|
||||
.startsWith('http'))
|
||||
meta.repo = config.fromgit;
|
||||
|
||||
const forumid = (meta.forums || '').match(/[&\?]t=(\d+)/);
|
||||
if(forumid) meta.forums = forumid[1];
|
||||
|
||||
if(config.dryrun)
|
||||
console.log(util.inspect({fields, meta}));
|
||||
|
||||
Object.assign(fields, meta);
|
||||
|
||||
if(config.dryrun) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user