Browse Source
Even better regex for widget parsing
pull/17636/head
Enis Necipoglu
3 years ago
No known key found for this signature in database
GPG Key ID: 1EC55E13241E1680
1 changed files with
1 additions and
1 deletions
-
modules/cms-kit/src/Volo.CmsKit.Common.Web/Pages/CmsKit/Components/Contents/ContentParser.cs
|
|
|
@ -40,7 +40,7 @@ public class ContentParser : ITransientDependency |
|
|
|
|
|
|
|
protected virtual void ParseContent(string content, List<string> parsedList) |
|
|
|
{ |
|
|
|
var replacedText = Regex.Replace(content, @"\[Widget Type=.*?\]", Delimeter); |
|
|
|
var replacedText = Regex.Replace(content, @"\[Widget.*.Type=.*?\]", Delimeter); |
|
|
|
if (!replacedText.Contains(Delimeter)) |
|
|
|
{ |
|
|
|
parsedList.Add(replacedText); |
|
|
|
|