mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-11-01 19:32:27 +08:00
feature (orgmode): making org mode awesome from a browser
This commit is contained in:
4
client/helpers/common.js
Normal file
4
client/helpers/common.js
Normal file
@ -0,0 +1,4 @@
|
||||
export function leftPad(str, length, pad = "0"){
|
||||
if(typeof str !== 'string' || typeof pad !== 'string' || str.length >= length || !pad.length > 0) return str;
|
||||
return leftPad(pad + str, length, pad);
|
||||
}
|
||||
Reference in New Issue
Block a user