Skip to content

Commit

Permalink
Fix: trailing whitespace on alert type caused regex mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
FransBouma committed Feb 10, 2016
1 parent 17469e7 commit c7db800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MarkdownSharp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1379,7 +1379,7 @@ private string FaIconEvaluator(Match match)
}


private static Regex _alertBlock = new Regex(@"(@alert) (\S+)\n([\s\S]+?)\s(@end)", RegexOptions.Compiled);
private static Regex _alertBlock = new Regex(@"(@alert) (\S+)\s*([\s\S]+?)\s(@end)", RegexOptions.Compiled);

private string DoAlertBlocks(string text)
{
Expand Down

0 comments on commit c7db800

Please sign in to comment.