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 2b50a200 Allow for missing /x1 prefix
2b50a200 is described below

commit 2b50a200f3b07f3b8c775c3d87579ec5b96e622f
Author: Sebb <[email protected]>
AuthorDate: Mon Aug 14 00:03:32 2023 +0100

    Allow for missing /x1 prefix
---
 tools/wwwdocs.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/wwwdocs.rb b/tools/wwwdocs.rb
index 640fc1d0..6af18379 100755
--- a/tools/wwwdocs.rb
+++ b/tools/wwwdocs.rb
@@ -97,7 +97,7 @@ def get_auth
       loc = $1.gsub(/^\^/,'') # remove ^ prefix
     elsif l =~ %r{<Directory ([^>]+)>}
       # remove standard prefix and append '/' directory marker
-      loc = $1.sub('/x1/srv/whimsy/www','')+'/'
+      loc = $1.sub(%r{^(/x1)?/srv/whimsy/www},'')+'/'
     elsif l =~ %r{AuthName\s+"(.+)"} # generate the entry
       hash[loc] = $1 if loc
       loc = nil

Reply via email to