From b3b7bd44ef95a390fba9c8f2beff723cb72cfdf2 Mon Sep 17 00:00:00 2001 From: ammarahm-ed Date: Thu, 1 Jun 2023 21:27:34 +0500 Subject: [PATCH] core: fix note count incorrect --- packages/core/collections/notes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/collections/notes.js b/packages/core/collections/notes.js index 713fdca06..f15b74d4b 100644 --- a/packages/core/collections/notes.js +++ b/packages/core/collections/notes.js @@ -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) {