changeset 1445:0c7b3bb73517 live

Fix underscores in idents (and make regex the same in both places it's used)
author Chris Cannam
date Tue, 22 Oct 2013 10:56:02 +0100
parents e2485421fc14
children 3db88d605fa7
files extra/soundsoftware/convert-external-repos.rb extra/soundsoftware/reposman-soundsoftware.rb
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/extra/soundsoftware/convert-external-repos.rb	Fri Oct 11 16:42:55 2013 +0100
+++ b/extra/soundsoftware/convert-external-repos.rb	Tue Oct 22 10:56:02 2013 +0100
@@ -146,7 +146,7 @@
   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
--- a/extra/soundsoftware/reposman-soundsoftware.rb	Fri Oct 11 16:42:55 2013 +0100
+++ b/extra/soundsoftware/reposman-soundsoftware.rb	Tue Oct 22 10:56:02 2013 +0100
@@ -263,7 +263,7 @@
   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