You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by cl...@apache.org on 2020/05/19 21:13:13 UTC
[whimsy] 01/01: Allow for period and comma in names
This is an automated email from the ASF dual-hosted git repository.
clr pushed a commit to branch roster-emeritus
in repository https://gitbox.apache.org/repos/asf/whimsy.git
commit d8af4e0c669954e1daa447091f0542e66f3d7ad6
Author: Craig L Russell <cr...@oracle.com>
AuthorDate: Tue May 19 14:12:50 2020 -0700
Allow for period and comma in names
---
lib/whimsy/asf/documents.rb | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/whimsy/asf/documents.rb b/lib/whimsy/asf/documents.rb
index 5327db0..fe09810 100644
--- a/lib/whimsy/asf/documents.rb
+++ b/lib/whimsy/asf/documents.rb
@@ -113,6 +113,7 @@ module ASF
result = nil
if files
stem = Regexp.new Regexp.quote name.downcase.gsub(' ','-')
+ .gsub(".", "").gsub(",", "")
files.each do |file|
if stem =~ file
result = file