ssg: StaticSiteItem: fix parsing blog posts with only one HTML line

This commit is contained in:
Nick Vella 2019-08-07 18:51:21 +10:00
parent 9db6fdd6e9
commit 5d7077e6c3
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ namespace OpenLiveWriter.BlogClient.Clients.StaticSite
/// </summary>
public static string PUBLISH_FILE_EXTENSION = ".html";
private static Regex POST_PARSE_REGEX = new Regex("^---\r?\n((?:.*\r?\n)*?)---\r?\n\r?\n((?:.*\r?\n)*)");
private static Regex POST_PARSE_REGEX = new Regex("^---\r?\n((?:.*\r?\n)*?)---\r?\n\r?\n((?:.*\r?\n?)*)");
protected StaticSiteConfig SiteConfig;
public BlogPost BlogPost { get; private set; }