Skip to content

Commit

Permalink
Updated comments to be more accurate (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
nybbles authored May 12, 2022
1 parent 3bdc195 commit e387592
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ItemNote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) =>
Expand Down

0 comments on commit e387592

Please sign in to comment.