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

Stefan Eßer <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
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 <[email protected]>
AuthorDate: 2021-04-29 18:43:13 +0000
Commit:     Stefan Eßer <[email protected]>
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;
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-doc-all
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.