Skip to content

Commit

Permalink
Merge pull request #148 from MaceWindu/patch-1
Browse files Browse the repository at this point in the history
Fix StackOverflowException in ParsedTemplate.cs
  • Loading branch information
mhutch authored Oct 2, 2023
2 parents df8fda0 + 55d4d5b commit 8fd05a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Mono.TextTemplating/Mono.TextTemplating/ParsedTemplate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public IEnumerable<TemplateSegment> Content {

// this is deprecated to prevent accidentally passing a host without the TemplateFile property set
[Obsolete("Use TemplateGenerator.ParseTemplate")]
public static ParsedTemplate FromText (string content, ITextTemplatingEngineHost host) => FromText (content, host);
public static ParsedTemplate FromText (string content, ITextTemplatingEngineHost host) => FromTextInternal (content, host);

internal static ParsedTemplate FromTextInternal (string content, ITextTemplatingEngineHost host)
{
Expand Down

0 comments on commit 8fd05a6

Please sign in to comment.