Skip to content
Snippets Groups Projects
Commit cc048c41 authored by michael.minelli's avatar michael.minelli
Browse files

DojoValidators => template sany. : Add default template address

parent 1d7d9061
No related branches found
No related tags found
No related merge requests found
...@@ -93,13 +93,14 @@ class DojoValidators { ...@@ -93,13 +93,14 @@ class DojoValidators {
const template = this.getParamValue(req, path); const template = this.getParamValue(req, path);
if ( template ) { if ( template ) {
return `${ Config.gitlab.urls[0].replace(/^([a-z]{3,5}:\/{2})?(.*)/, `$1${ Config.gitlab.account.username }:${ Config.gitlab.account.token }@$2`) }${ template }.git`; return `${ Config.gitlab.urls[0].replace(/^([a-z]{3,5}:\/{2})?(.*)/, `$1${ Config.gitlab.account.username }:${ Config.gitlab.account.token }@$2`) }${ template }.git`;
} else {
return Config.enonce.default.template;
} }
} catch ( e ) { } } catch ( e ) { }
return value; return value;
} }
}); });
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment