Date: Thu, 29 Apr 2021 18:49:00 GMT From: =?utf-8?B?U3RlZmFuIEXDn2Vy?= <se@FreeBSD.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org Subject: git: 9a0fb30847 - main - themes/beastie/static/js: add cgit.freebsd.org to RE Message-ID: <202104291849.13TIn08b081328@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@FreeBSD.org> AuthorDate: 2021-04-29 18:43:13 +0000 Commit: Stefan Eßer <se@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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202104291849.13TIn08b081328>