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

All: Fixes #61: Handle path that ends with slash for file system sync.

This commit is contained in:
Laurent Cozic
2018-05-08 11:29:25 +01:00
parent facf8afa8b
commit cb617e1b14
2 changed files with 11 additions and 1 deletions

View File

@ -46,7 +46,7 @@ function toSystemSlashes(path, os) {
}
function rtrimSlashes(path) {
return path.replace(/\/+$/, '');
return path.replace(/[\/\\]+$/, '');
}
function ltrimSlashes(path) {