Skip to content

Commit

Permalink
🐛 Use words, not characters, in word count
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Jul 2, 2022
1 parent 1fec9d3 commit 5db1ff8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const parseNoteFile = async (
slug: file,
title: title,
date,
words: contents.length - (title || "").length,
words: contents.split(" ").length,
};
};

Expand Down

0 comments on commit 5db1ff8

Please sign in to comment.