Skip to content

Commit aa3d0b1

Browse files
committed
add timeout to regex
Signed-off-by: Neil South <neil.south@answerdigital.com>
1 parent d257b39 commit aa3d0b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WorkflowManager/ConditionsResolver/Resovler/Conditional.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public int Parse(ReadOnlySpan<char> input, int currentIndex = 0)
9292
{
9393
var pattern = @"(?i:\bnull\b|''|""""|\bundefined\b)";
9494
var replace = NULL;
95-
input = Regex.Replace(input.ToString(), pattern, replace, RegexOptions.IgnoreCase);
95+
input = Regex.Replace(input.ToString(), pattern, replace, RegexOptions.IgnoreCase, TimeSpan.FromSeconds(1));
9696
}
9797

9898
if (input.IsEmpty || input.IsWhiteSpace())

0 commit comments

Comments
 (0)