From 72c44ab0ae921cde7ffd1ff139f392d01b11c2db Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 5 Mar 2010 18:08:53 +0000 Subject: [PATCH] * Allow dots in job names in views. --- src/lib/Hydra/Controller/View.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Hydra/Controller/View.pm b/src/lib/Hydra/Controller/View.pm index 5febd6e3..b3cbbf6c 100644 --- a/src/lib/Hydra/Controller/View.pm +++ b/src/lib/Hydra/Controller/View.pm @@ -51,7 +51,7 @@ sub updateView { my $description = trim $c->request->params->{"job-$baseName-description"}; my $attrs = trim $c->request->params->{"job-$baseName-attrs"}; - $name =~ /^([\w\-]+):([\w\-]+)$/ or error($c, "Invalid job name: $name"); + $name =~ /^([\w\-]+):($jobNameRE)$/ or error($c, "Invalid job name: $name"); my $jobsetName = $1; my $jobName = $2;