[#270] bugfix: considering underscore a valid match in project identifier

This commit is contained in:
Jens Ulferts 2011-03-10 11:18:37 +01:00 committed by Eric Davis
parent a80515fb20
commit 61be2ea669
1 changed files with 5 additions and 6 deletions

View File

@ -238,7 +238,7 @@ projects.each do |project|
if project.identifier.empty?
log("\tno identifier for project #{project.name}")
next
elsif not project.identifier.match(/^[a-z0-9\-]+$/)
elsif not project.identifier.match(/^[a-z0-9\-_]+$/)
log("\tinvalid identifier for project #{project.name} : #{project.identifier}");
next;
end
@ -309,4 +309,3 @@ projects.each do |project|
end
end