File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -399,7 +399,8 @@ describe('lint markdown content', () => {
399399
400400 // Filter out some very specific false positive matches
401401 const matches = initialMatches . filter ( match => {
402- if ( markdownRelPath === 'content/admin/enterprise-management/migrating-from-github-enterprise-1110x-to-2123.md' ) {
402+ if ( markdownRelPath === 'content/admin/enterprise-management/migrating-from-github-enterprise-1110x-to-2123.md' ||
403+ markdownRelPath === 'content/admin/all-releases.md' ) {
403404 return false
404405 }
405406 return true
@@ -410,7 +411,16 @@ describe('lint markdown content', () => {
410411 } )
411412
412413 test ( 'URLs must not contain a hard-coded domain name' , async ( ) => {
413- const matches = ( content . match ( domainLinkRegex ) || [ ] )
414+ const initialMatches = ( content . match ( domainLinkRegex ) || [ ] )
415+
416+ // Filter out some very specific false positive matches
417+ const matches = initialMatches . filter ( match => {
418+ if ( markdownRelPath === 'content/admin/all-releases.md' ) {
419+ return false
420+ }
421+ return true
422+ } )
423+
414424 const errorMessage = formatLinkError ( domainLinkErrorText , matches )
415425 expect ( matches . length , errorMessage ) . toBe ( 0 )
416426 } )
You can’t perform that action at this time.
0 commit comments