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 7b655717 More ASF hosts
7b655717 is described below

commit 7b655717a03c729b4d53b97cae8e5fe4ee9c4c5c
Author: Sebb <[email protected]>
AuthorDate: Thu Jul 4 08:33:33 2024 +0100

    More ASF hosts
---
 tools/scan-page.js | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/tools/scan-page.js b/tools/scan-page.js
index c5ea2910..c8ab0bee 100755
--- a/tools/scan-page.js
+++ b/tools/scan-page.js
@@ -11,8 +11,14 @@ const inithost = new URL(target).host;
 
 const option = process.argv[3] || '';
 
+// TODO: this list is not complete
 function isASFhost(host) {
-  return host == '' || host == 'apache.org' || host.endsWith('.apache.org') || 
host.endsWith('.apachecon.com');
+  return host == '' || 
+         host == 'apache.org' ||
+         host == 'apachecon.com' ||
+         host == 'openoffice.org' ||
+         host.endsWith('.apache.org') ||
+         host.endsWith('.apachecon.com');
 }
 if (!isASFhost(inithost)) {
   throw new Error("Only ASF hosts are supported - saw " + inithost);

Reply via email to