Compare commits

..

No commits in common. "7695871fe06159c11edae34db6ecea209300fc62" and "041723abcc261fc3c9a738f026fe7e5fde461962" have entirely different histories.

2 changed files with 4 additions and 4 deletions

4
dist/index.js vendored
View File

@ -2477,9 +2477,9 @@ function isGhes(url) {
const ghUrl = new url_1.URL(url || process.env['GITHUB_SERVER_URL'] || 'https://github.com');
const hostname = ghUrl.hostname.trimEnd().toUpperCase();
const isGitHubHost = hostname === 'GITHUB.COM';
const isGitHubEnterpriseCloudHost = hostname.endsWith('.GHE.COM');
const isGheHost = hostname.endsWith('.GHE.COM');
const isLocalHost = hostname.endsWith('.LOCALHOST');
return !isGitHubHost && !isGitHubEnterpriseCloudHost && !isLocalHost;
return !isGitHubHost && !isGheHost && !isLocalHost;
}
function pruneSuffix(text, suffix) {
if (hasContent(suffix, true) && (text === null || text === void 0 ? void 0 : text.endsWith(suffix))) {

View File

@ -51,10 +51,10 @@ export function isGhes(url?: string): boolean {
const hostname = ghUrl.hostname.trimEnd().toUpperCase()
const isGitHubHost = hostname === 'GITHUB.COM'
const isGitHubEnterpriseCloudHost = hostname.endsWith('.GHE.COM')
const isGheHost = hostname.endsWith('.GHE.COM')
const isLocalHost = hostname.endsWith('.LOCALHOST')
return !isGitHubHost && !isGitHubEnterpriseCloudHost && !isLocalHost
return !isGitHubHost && !isGheHost && !isLocalHost
}
function pruneSuffix(text: string, suffix: string) {