Skip to content

Commit 49f7875

Browse files
authored
fix: Compiler error
1 parent 47e2428 commit 49f7875

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LinkDotNet.Blog.Domain/ReadingTimeCalculator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public static int CalculateReadingTime(string content)
1010
const double wordsPerMinute = 250;
1111
const double minutesPerImage = 0.5;
1212

13-
var imageCount = ImageRegex().Matches(content).Count;
13+
var imageCount = ImageRegex().Count(content);
1414

1515
var wordCount = GetWordCount(content) - imageCount;
1616
var readTimeWords = wordCount / wordsPerMinute;

0 commit comments

Comments
 (0)