Skip to content
Snippets Groups Projects
Commit 64fce507 authored by Anton Soldatov's avatar Anton Soldatov
Browse files

Added ability to derive project_id from project_name for names like client.name.com

parent 6717a7b9
No related branches found
No related tags found
No related merge requests found
......@@ -27,8 +27,13 @@ if (!$conf) {
}
if (!$project_id) {
if ($project_name =~ /^[a-z.\-]+$/i) {
$project_id = $project_name;
$project_id =~ s/\./-/g;
} else {
die 'Invalid --id parameter';
}
}
my $layout = Config::IniFiles->new( -file => $layout_fname );
if (!$layout) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment