We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47e2428 commit 49f7875Copy full SHA for 49f7875
src/LinkDotNet.Blog.Domain/ReadingTimeCalculator.cs
@@ -10,7 +10,7 @@ public static int CalculateReadingTime(string content)
10
const double wordsPerMinute = 250;
11
const double minutesPerImage = 0.5;
12
13
- var imageCount = ImageRegex().Matches(content).Count;
+ var imageCount = ImageRegex().Count(content);
14
15
var wordCount = GetWordCount(content) - imageCount;
16
var readTimeWords = wordCount / wordsPerMinute;
0 commit comments