File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ const languagesToSkip = Object.keys(require('../lib/languages'))
4141// Skip deprecated Enterprise content.
4242// Capture the old format https://docs.github.com/enterprise/2.1/
4343// and the new format https://docs.github.com/enterprise-server@2.19/.
44- const enterpriseReleasesToSkip = new RegExp ( `${ root } .+?[/@](${ deprecated . join ( '|' ) } )/ ` )
44+ const enterpriseReleasesToSkip = new RegExp ( `${ root } .+?[/@](${ deprecated . join ( '|' ) } )(/|$) ` )
4545
4646const config = {
4747 path : program . path || englishRoot ,
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ const config = {
3131 // Skip dist files
3232 '/dist/index.*' ,
3333 // Skip deprecated Enterprise content
34- `enterprise(-server@|/)(${ deprecated . join ( '|' ) } )/? `
34+ `enterprise(-server@|/)(${ deprecated . join ( '|' ) } )(/|$) `
3535 ]
3636}
3737
You can’t perform that action at this time.
0 commit comments