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

All: Added fs drivers and encryption service

This commit is contained in:
Laurent Cozic
2017-12-11 23:52:42 +00:00
parent 0f343bccda
commit 8a282fd2e1
14 changed files with 403 additions and 3 deletions

View File

@ -191,4 +191,14 @@ function splitCommandString(command) {
return args;
}
module.exports = { removeDiacritics, escapeFilename, wrap, splitCommandString };
function padLeft(string, length, padString) {
if (!string) return '';
while (string.length < length) {
string = padString + string;
}
return string;
}
module.exports = { removeDiacritics, escapeFilename, wrap, splitCommandString, padLeft };