changed logic for article reading time estimation

This commit is contained in:
sairaj mote 2022-03-28 17:13:10 +05:30
parent 57c4369849
commit e68489717a

View File

@ -1308,7 +1308,7 @@
function getReadingTime(content) {
const wpm = 250;
const words = content.trim().split(/\s+/).length;
return Math.ceil(words / wpm);
return Math.floor(words / wpm);
}