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 7b562c8 Allow for missing next group
7b562c8 is described below
commit 7b562c88cdfa05cf4927c4b247f52259b0fec065
Author: Sebb <[email protected]>
AuthorDate: Sat Jul 4 16:54:33 2020 +0100
Allow for missing next group
---
lib/whimsy/asf/auth.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/whimsy/asf/auth.rb b/lib/whimsy/asf/auth.rb
index a6bf925..433833f 100644
--- a/lib/whimsy/asf/auth.rb
+++ b/lib/whimsy/asf/auth.rb
@@ -48,7 +48,7 @@ module ASF
# read the config file - extract the [explicit] section
def read_conf
-
File.read(File.join(@auth,'auth.conf')).scan(/^\[explicit\].*^\[/m).first
rescue ''
+
File.read(File.join(@auth,'auth.conf')).scan(/^\[explicit\].*(?:^\[)?/m).first
rescue ''
end
# read the auth template; extract [groups]