git: 9a0fb30847 - main - themes/beastie/static/js: add cgit.freebsd.org to RE

Stefan Eßer se at FreeBSD.org
Thu Apr 29 18:49:01 UTC 2021


The branch main has been updated by se (ports, src committer):

URL: https://cgit.FreeBSD.org/doc/commit/?id=9a0fb308473f4272035f7b441d23652adf8ef753

commit 9a0fb308473f4272035f7b441d23652adf8ef753
Author:     Stefan Eßer <se at FreeBSD.org>
AuthorDate: 2021-04-29 18:43:13 +0000
Commit:     Stefan Eßer <se at FreeBSD.org>
CommitDate: 2021-04-29 18:43:13 +0000

    themes/beastie/static/js: add cgit.freebsd.org to RE
    
    The regular expression that matches the official FreeBSD hosts has
    been extended to cover cgit.freebsd.org.
    
    The match for svnweb.freebsd.org has not been removed at this time.
    
    Approved by:    wosch
    Differential Revision:  https://reviews.freebsd.org/D29857
---
 website/content/en/layout/js/google.js     | 2 +-
 website/themes/beastie/static/js/google.js | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/website/content/en/layout/js/google.js b/website/content/en/layout/js/google.js
index d6aac94338..34bfefcc94 100644
--- a/website/content/en/layout/js/google.js
+++ b/website/content/en/layout/js/google.js
@@ -16,7 +16,7 @@ var h = document.location.hostname;
  * Check that the hosting domain is actually a FreeBSD.org domain, so
  * we don't accidentally obtain data from mirrors.
  */
-var fbsdregex = /((docs|security|svnweb|wiki|www)\.freebsd\.org|google\.com)$/i;
+var fbsdregex = /((docs|security|svnweb|cgit|wiki|www)\.freebsd\.org|google\.com)$/i;
 
 if (typeof navigator.doNotTrack !== "undefined" && (navigator.doNotTrack == "yes" || navigator.doNotTrack == "1")) {
 	allow_track = false;
diff --git a/website/themes/beastie/static/js/google.js b/website/themes/beastie/static/js/google.js
index d6aac94338..34bfefcc94 100644
--- a/website/themes/beastie/static/js/google.js
+++ b/website/themes/beastie/static/js/google.js
@@ -16,7 +16,7 @@ var h = document.location.hostname;
  * Check that the hosting domain is actually a FreeBSD.org domain, so
  * we don't accidentally obtain data from mirrors.
  */
-var fbsdregex = /((docs|security|svnweb|wiki|www)\.freebsd\.org|google\.com)$/i;
+var fbsdregex = /((docs|security|svnweb|cgit|wiki|www)\.freebsd\.org|google\.com)$/i;
 
 if (typeof navigator.doNotTrack !== "undefined" && (navigator.doNotTrack == "yes" || navigator.doNotTrack == "1")) {
 	allow_track = false;


More information about the dev-commits-doc-all mailing list