# HG changeset patch # User Chris Cannam # Date 1382435762 -3600 # Node ID 0c7b3bb735177478d776335b6ac37ded39735984 # Parent e2485421fc1445513d83d8ed88bcf5e6469c4da6 Fix underscores in idents (and make regex the same in both places it's used) diff -r e2485421fc14 -r 0c7b3bb73517 extra/soundsoftware/convert-external-repos.rb --- 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 diff -r e2485421fc14 -r 0c7b3bb73517 extra/soundsoftware/reposman-soundsoftware.rb --- 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