You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2018/04/30 20:03:48 UTC
[whimsy] branch master updated: Name may contain '-'
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 64608dc Name may contain '-'
64608dc is described below
commit 64608dc7b638f79c6021c0c9e4508e63af2b3305
Author: Sebb <se...@apache.org>
AuthorDate: Mon Apr 30 21:03:46 2018 +0100
Name may contain '-'
---
lib/whimsy/asf/svn.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/whimsy/asf/svn.rb b/lib/whimsy/asf/svn.rb
index 05a112a..743e814 100644
--- a/lib/whimsy/asf/svn.rb
+++ b/lib/whimsy/asf/svn.rb
@@ -75,8 +75,8 @@ module ASF
result = repos[(@mock+name.sub('private/','')).to_s.sub(/\/*$/, '')] ||
repos[(@base+name).to_s.sub(/\/*$/, '')] # lose trailing slash
- # if name is a simple identifier, try to match name in repository.yml
- if not result and name =~ /^\w+$/
+ # if name is a simple identifier (may contain '-'), try to match name in repository.yml
+ if not result and name =~ /^[\w-]+$/
entry = YAML.load_file(REPOSITORY)[:svn][name]
result = find((@base+entry['url']).to_s) if entry
end
--
To stop receiving notification emails like this one, please contact
sebb@apache.org.