1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

HtmlToMd: Fixed various tests

This commit is contained in:
Laurent Cozic
2018-05-14 18:46:04 +01:00
parent 30bfd82683
commit ba9598682c
11 changed files with 141 additions and 11 deletions

View File

@ -40,7 +40,8 @@ function safeFileExtension(e) {
return e.replace(/[^a-zA-Z0-9]/g, '')
}
function toSystemSlashes(path, os) {
function toSystemSlashes(path, os = null) {
if (os === null) os = process.platform;
if (os === 'win32') return path.replace(/\//g, "\\");
return path.replace(/\\/g, "/");
}