Skip to content

feat: New layout/design for the create or update blog post page #421

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/LinkDotNet.Blog.Domain/ReadingTimeCalculator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@ public static int CalculateReadingTime(string content)
return (int)Math.Ceiling(readTimeWords + readTimeImages);
}

[GeneratedRegex(@"!\[.*?\]\((.*?)\)")]
private static partial Regex ImageRegex();

private static int GetWordCount(ReadOnlySpan<char> content)
public static int GetWordCount(ReadOnlySpan<char> content)
{
var wordCount = 0;
for (var i = 0; i < content.Length; i++)
Expand All @@ -34,4 +31,7 @@ private static int GetWordCount(ReadOnlySpan<char> content)

return wordCount;
}

[GeneratedRegex(@"!\[.*?\]\((.*?)\)")]
private static partial Regex ImageRegex();
}
Loading