Skip to content

Commit 3596e91

Browse files
committed
Fixing #617
1 parent c45aa6d commit 3596e91

File tree

9 files changed

+12
-86175
lines changed

9 files changed

+12
-86175
lines changed

source/DasBlog All.sln

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,15 @@ Global
9595
SolutionGuid = {8F3ACFB8-CB52-4953-A1CF-4151E2789889}
9696
EndGlobalSection
9797
EndGlobal
98+
99+
string pattern = @"<img.*?src="".*?"".*?>";
100+
Regex rx = new Regex(pattern);
101+
var numberImages = string.Empty;
102+
foreach(Match m in rx.Matches(Post.Content))
103+
{
104+
var numberImages = m.Count;
105+
}
106+
107+
var imgMinutes = (numberImages*30)/60;
108+
var delimiters = news char[] { ' ', '\r', '\n' };
109+
var minute = Math.Round((double)dasBlogSettings.FilterHtml(Post.Content).Split(delimiters, StringSplitOptions.RemoveEmptyEntries).Length / 200) + imgMinutes;

source/DasBlog.Web.UI/wwwroot/lib/font-awesome/less/_icons.less

Lines changed: 0 additions & 1461 deletions
This file was deleted.

0 commit comments

Comments
 (0)