You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-24 23:26:50 +02:00
Desktop: Fixes #4426: Improved handling of empty paths for Joplin Server sync target
This commit is contained in:
@ -138,6 +138,10 @@ export function ltrimSlashes(path: string) {
|
||||
return path.replace(/^\/+/, '');
|
||||
}
|
||||
|
||||
export function trimSlashes(path: string): string {
|
||||
return ltrimSlashes(rtrimSlashes(path));
|
||||
}
|
||||
|
||||
export function quotePath(path: string) {
|
||||
if (!path) return '';
|
||||
if (path.indexOf('"') < 0 && path.indexOf(' ') < 0) return path;
|
||||
|
Reference in New Issue
Block a user