Skip to content

Commit 46496ee

Browse files
author
Peter Bengtsson
authored
github/github link checker issue with particular link (github#31814)
1 parent 6083412 commit 46496ee

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

script/check-github-github-links.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,10 @@ async function main() {
112112
(contents.substring(numIndex, numIndex + 11) === 'GitHub.help' &&
113113
contents.charAt(numIndex + 16) === '#') ||
114114
(contents.substring(numIndex, numIndex + 16) === 'GitHub.developer' &&
115-
contents.charAt(numIndex + 26) === '#')
115+
contents.charAt(numIndex + 26) === '#') ||
116+
// See internal issue #2180
117+
contents.slice(numIndex, numIndex + 'GitHub.help_url}/github/#{'.length) ===
118+
'GitHub.help_url}/github/#{'
116119
) {
117120
return
118121
}

0 commit comments

Comments
 (0)