From e38759261c17ce7639b9720550c319f87aee849b Mon Sep 17 00:00:00 2001 From: Nimalan Mahendran Date: Wed, 11 May 2022 18:09:46 -0700 Subject: [PATCH] Updated comments to be more accurate (#95) --- src/ItemNote.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ItemNote.ts b/src/ItemNote.ts index ca64d4e..a21ed63 100644 --- a/src/ItemNote.ts +++ b/src/ItemNote.ts @@ -170,7 +170,8 @@ const tagsToNoteContent = ( return tagList.map(tagNormalizer).join(TAG_NOTE_CONTENT_SEPARATOR); }; -// Ensure that "---" in title or excerpt does not mess up front matter +// Ensure that "---" in title or excerpt, double-quotes in title and newlines in +// excerpt do not mess up front matter const normalizeTitle = (excerpt: String) => excerpt.replace(/---./g, "").replace(/"/g, "'"); const normalizeExcerpt = (excerpt: String) =>