mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 03:46:37 +01:00
sync fix to prefix and some usability improvements
This commit is contained in:
@@ -66,6 +66,10 @@ function hash(text) {
|
||||
return crypto.createHash('sha1').update(text).digest('base64');
|
||||
}
|
||||
|
||||
function isEmptyOrWhitespace(str) {
|
||||
return str === null || str.match(/^ *$/) !== null;
|
||||
}
|
||||
|
||||
|
||||
module.exports = {
|
||||
randomSecureToken,
|
||||
@@ -79,5 +83,6 @@ module.exports = {
|
||||
hmac,
|
||||
isElectron,
|
||||
formatTwoTimestamps,
|
||||
hash
|
||||
hash,
|
||||
isEmptyOrWhitespace
|
||||
};
|
||||
Reference in New Issue
Block a user