File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ function relativeLinkExists(link: string, file: string): boolean {
6262 // Transform /docs/framework/{framework}/examples/ to /examples/{framework}/
6363 absPath = absPath . replace (
6464 / \/ d o c s \/ f r a m e w o r k \/ ( [ ^ / ] + ) \/ e x a m p l e s \/ / ,
65- '/examples/$1/' ,
65+ '/examples/$1/'
6666 )
6767 // For examples, we want to check if the directory exists
6868 exists = existsSync ( absPath ) && statSync ( absPath ) . isDirectory ( )
@@ -103,17 +103,17 @@ async function verifyMarkdownLinks() {
103103 } )
104104
105105 if ( relativeLinks . length > 0 ) {
106- relativeLinks . forEach ( ( link ) => {
106+ relativeLinks . forEach ( link => {
107107 relativeLinkExists ( link , file )
108108 } )
109109 }
110110 }
111111
112112 if ( errors . length > 0 ) {
113113 console . log ( `\n❌ Found ${ errors . length } broken links:` )
114- errors . forEach ( ( err ) => {
114+ errors . forEach ( err => {
115115 console . log (
116- `${ err . file } \n link: ${ err . link } \n resolved: ${ err . resolvedPath } \n why: ${ err . reason } \n` ,
116+ `${ err . file } \n link: ${ err . link } \n resolved: ${ err . resolvedPath } \n why: ${ err . reason } \n`
117117 )
118118 } )
119119 process . exit ( 1 )
You can’t perform that action at this time.
0 commit comments