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 b4b3fcf Allow protocol-relative URLs to apache.org (#52)
b4b3fcf is described below
commit b4b3fcf2d5067cf803bebe480816c78d335e3e1b
Author: Attila Bukor <[email protected]>
AuthorDate: Tue Aug 14 15:19:42 2018 +0200
Allow protocol-relative URLs to apache.org (#52)
---
lib/whimsy/sitestandards.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/whimsy/sitestandards.rb b/lib/whimsy/sitestandards.rb
index 48758ca..be53034 100644
--- a/lib/whimsy/sitestandards.rb
+++ b/lib/whimsy/sitestandards.rb
@@ -46,7 +46,7 @@ module SiteStandards
COMMON_CHECKS = {
'foundation' => { # Custom: a_href =~ ... then custom checking for
hover/title text
CHECK_TEXT => %r{apache|asf|foundation}i,
- CHECK_CAPTURE => %r{^https?://(www\.)?apache\.org/?$},
+ CHECK_CAPTURE => %r{^(https?:)?//(www\.)?apache\.org/?$},
CHECK_VALIDATE => %r{apache|asf|foundation}i,
CHECK_TYPE => false,
CHECK_POLICY =>
'https://www.apache.org/foundation/marks/pmcs#navigation',