mirror of
https://github.com/zadam/trilium.git
synced 2025-11-11 15:55:52 +01:00
make sure content is string for post-processing
This commit is contained in:
@@ -303,6 +303,10 @@ function toMap(list, key) {
|
||||
return map;
|
||||
}
|
||||
|
||||
function isString(x) {
|
||||
return Object.prototype.toString.call(x) === "[object String]";
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
randomSecureToken,
|
||||
randomString,
|
||||
@@ -335,4 +339,5 @@ module.exports = {
|
||||
normalize,
|
||||
hashedBlobId,
|
||||
toMap,
|
||||
isString
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user