Fixes to testing guide (for Windows only) (#304)

* Fixes to testing guide (for Windows only)

* Fixed line ending detection for UNIX and Windows

* Removed incorrect instructions about translations

* Removed redudant heading and turned it into a note.
This commit is contained in:
neilsutcliffe 2017-12-18 20:48:53 +01:00 committed by Joel Marcey
parent 1db69285e5
commit 21cbece838
4 changed files with 15 additions and 10 deletions

View file

@ -81,7 +81,8 @@ function readSidebar() {
// split markdown header
function splitHeader(content) {
const lines = content.split('\n');
// New line characters need to handle all operating systems.
const lines = content.split(/\r?\n/);
if (lines[0] !== '---') {
return {};
}