Skip to content

Commit ccbb4ce

Browse files
committed
feat: New layout/design for the create or update blog post page
1 parent 487cde3 commit ccbb4ce

File tree

3 files changed

+262
-103
lines changed

3 files changed

+262
-103
lines changed

src/LinkDotNet.Blog.Domain/ReadingTimeCalculator.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@ public static int CalculateReadingTime(string content)
1818
return (int)Math.Ceiling(readTimeWords + readTimeImages);
1919
}
2020

21-
[GeneratedRegex(@"!\[.*?\]\((.*?)\)")]
22-
private static partial Regex ImageRegex();
23-
24-
private static int GetWordCount(ReadOnlySpan<char> content)
21+
public static int GetWordCount(ReadOnlySpan<char> content)
2522
{
2623
var wordCount = 0;
2724
for (var i = 0; i < content.Length; i++)
@@ -34,4 +31,7 @@ private static int GetWordCount(ReadOnlySpan<char> content)
3431

3532
return wordCount;
3633
}
34+
35+
[GeneratedRegex(@"!\[.*?\]\((.*?)\)")]
36+
private static partial Regex ImageRegex();
3737
}

0 commit comments

Comments
 (0)