Skip to content
This repository was archived by the owner on Jul 11, 2026. It is now read-only.

PR Mdlinks#35

Open
akaren29 wants to merge 5 commits into
Laboratoria:masterfrom
akaren29:master
Open

PR Mdlinks#35
akaren29 wants to merge 5 commits into
Laboratoria:masterfrom
akaren29:master

Conversation

@akaren29

@akaren29 akaren29 commented Jun 6, 2020

Copy link
Copy Markdown

Please have compassion!!

Comment thread index.js
let fileMd = fs.readFileSync(uri,'utf-8');
return fileMd;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cuida la indentación de tus archivos, de esta manera podrá verse más ordenado.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Podría simplificarse tu función algo como:
function readFile(uri) { return fs.readFileSync(uri,'utf-8'); }
o

const readFile = uri => s.readFileSync(uri,'utf-8');

Comment thread index.js
}

function searchLinks(fileMd, uri){
let linksArr = []

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

quizá un mejor nombre para la función podría ser getLinks

Comment thread index.js
})
})
return linksValid;
};

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Por favor cuida mucho la indentación de tus archivos.

Comment thread index.js
}
})
promises.push(promise)
})

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Qué buena solución!

@AdrianaHY AdrianaHY left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excelente trabajo Karen! Por favor cuida mucho tu indentación y buenas prácticas, por lo demás todo está muy bien.
También trabaja en tu testing, creo que es la única parte que nos falta.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants