Skip to content

Commit

Permalink
Add timeout to insert updater regex.
Browse files Browse the repository at this point in the history
  • Loading branch information
rob5300 committed Apr 18, 2022
1 parent 2cb852c commit 62cb627
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion InsertUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ internal abstract class InsertUpdater : Updater

public InsertUpdater() : base()
{
insertBlockRegex = new Regex(InsertContainerBlockName + @" ?= ?\n?", RegexOptions.Compiled | RegexOptions.IgnoreCase | RegexOptions.Multiline);
insertBlockRegex = new Regex(InsertContainerBlockName + @" ?= ?\n?", RegexOptions.Compiled | RegexOptions.IgnoreCase | RegexOptions.Multiline, TimeSpan.FromSeconds(1));
}

public override string Process(ref string input)
Expand Down

0 comments on commit 62cb627

Please sign in to comment.