Browse Source

add RegexOptions.IgnoreCase to Docs description get method

pull/3516/head
Alper Ebicoglu 6 years ago
parent
commit
c62897a3d9
  1. 2
      modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml.cs

2
modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml.cs

@ -597,7 +597,7 @@ namespace Volo.Docs.Pages.Documents.Project
public string GetDescription()
{
var firstParagraph = new Regex(@"<p>(.*?)</p>");
var firstParagraph = new Regex(@"<p>(.*?)</p>", RegexOptions.IgnoreCase);
var match = firstParagraph.Match(Document.Content);
if (!match.Success)
{

Loading…
Cancel
Save