mirror of
https://github.com/zadam/trilium.git
synced 2025-10-29 01:06:36 +01:00
always use template strings instead of string concatenation
This commit is contained in:
@@ -25,8 +25,7 @@ function getNote(req) {
|
||||
pojo.content = note.getContent();
|
||||
|
||||
if (note.type === 'file' && pojo.content.length > 10000) {
|
||||
pojo.content = pojo.content.substr(0, 10000)
|
||||
+ `\r\n\r\n... and ${pojo.content.length - 10000} more characters.`;
|
||||
pojo.content = `${pojo.content.substr(0, 10000)}\r\n\r\n... and ${pojo.content.length - 10000} more characters.`;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user