Skip to content

Commit c0ac8fd

Browse files
authored
Merge pull request #167 from github/github.com-matching
Fix github.com matching
2 parents ae9f0ec + 252dc13 commit c0ac8fd

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Automatically add our team to each pull request in this repo
2+
* @github/pages-reviewers

lib/github-pages-health-check/domain.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ def pages_dot_github_dot_com?
283283

284284
# Is this domain owned by GitHub?
285285
def github_domain?
286-
!!host.downcase.end_with?("github.com")
286+
!!host.match(/(\A|\.)github\.com\.?\z/i)
287287
end
288288

289289
# Is the host our Fastly CNAME?

0 commit comments

Comments
 (0)