core: fix note count incorrect

This commit is contained in:
ammarahm-ed
2023-06-01 21:27:34 +05:00
committed by Abdullah Atta
parent c85242a610
commit b3b7bd44ef

View File

@@ -433,7 +433,7 @@ export default class Notes extends Collection {
.replace(DATE_REGEX, date)
.replace(TIME_REGEX, time)
.replace(HEADLINE_REGEX, headline)
.replace(COUNT_REGEX, this.all.length);
.replace(COUNT_REGEX, this.all.length + 1);
}
_getNoteTitle(note, oldNote, headline) {