mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 04:00:59 +01:00
core: use only first 10 words of headline in title
This commit is contained in:
committed by
Abdullah Atta
parent
e75c62e6e1
commit
c5a264270c
@@ -447,7 +447,10 @@ export default class Notes extends Collection {
|
||||
) {
|
||||
return oldNote.title.replace(NEWLINE_STRIP_REGEX, " ");
|
||||
}
|
||||
return this.formatTitle(this._db.settings.getTitleFormat(), headline);
|
||||
return this.formatTitle(
|
||||
this._db.settings.getTitleFormat(),
|
||||
headline?.split(" ").splice(0, 10)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user