changed logic for article reading time estimation
This commit is contained in:
parent
57c4369849
commit
e68489717a
@ -1308,7 +1308,7 @@
|
|||||||
function getReadingTime(content) {
|
function getReadingTime(content) {
|
||||||
const wpm = 250;
|
const wpm = 250;
|
||||||
const words = content.trim().split(/\s+/).length;
|
const words = content.trim().split(/\s+/).length;
|
||||||
return Math.ceil(words / wpm);
|
return Math.floor(words / wpm);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user