You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2019/01/18 11:42:21 UTC
[whimsy] branch master updated: WHIMSY-235 allow trailing / to be
omitted
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 a3a3e1d WHIMSY-235 allow trailing / to be omitted
a3a3e1d is described below
commit a3a3e1d13452cc075b0090d36391b1d8604022c3
Author: Sebb <se...@apache.org>
AuthorDate: Fri Jan 18 11:42:16 2019 +0000
WHIMSY-235 allow trailing / to be omitted
---
lib/whimsy/sitestandards.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/whimsy/sitestandards.rb b/lib/whimsy/sitestandards.rb
index be53034..41d80cc 100644
--- a/lib/whimsy/sitestandards.rb
+++ b/lib/whimsy/sitestandards.rb
@@ -63,10 +63,10 @@ module SiteStandards
'license' => { # link_check a_text =~ /^license$/ and a_href.include? 'apache.org'
CHECK_TEXT => /^license$/,
CHECK_CAPTURE => %r{apache\.org},
- CHECK_VALIDATE => %r{^https?://.*apache.org/licenses/$},
+ CHECK_VALIDATE => %r{^https?://.*apache.org/licenses/?$},
CHECK_TYPE => true,
CHECK_POLICY => 'https://www.apache.org/foundation/marks/pmcs#navigation',
- CHECK_DOC => '"License" should link to: http://www.apache.org/licenses/',
+ CHECK_DOC => '"License" should link to: http[s]://www.apache.org/licenses[/]',
},
'thanks' => { # link_check a_text =~ /\Athanks[!]?\z/
CHECK_TEXT => /\Athanks[!]?\z/,