From ef7454521c946704874b5c23ae1697540398c44f Mon Sep 17 00:00:00 2001 From: Stephen Toub Date: Mon, 7 Mar 2022 16:53:12 -0500 Subject: [PATCH] Fix missing StringSyntax attribute in Regex ref assembly (#66309) --- .../System.Text.RegularExpressions/ref/System.Text.RegularExpressions.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libraries/System.Text.RegularExpressions/ref/System.Text.RegularExpressions.cs b/src/libraries/System.Text.RegularExpressions/ref/System.Text.RegularExpressions.cs index dd6956d..1bef927 100644 --- a/src/libraries/System.Text.RegularExpressions/ref/System.Text.RegularExpressions.cs +++ b/src/libraries/System.Text.RegularExpressions/ref/System.Text.RegularExpressions.cs @@ -138,6 +138,7 @@ namespace System.Text.RegularExpressions protected internal System.Text.RegularExpressions.RegexRunnerFactory? factory; public static readonly System.TimeSpan InfiniteMatchTimeout; protected internal System.TimeSpan internalMatchTimeout; + [System.Diagnostics.CodeAnalysis.StringSyntax(System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.Regex)] protected internal string? pattern; protected internal System.Text.RegularExpressions.RegexOptions roptions; protected Regex() { } -- 2.7.4