From 249d0604488b88ffc41ef3c61485f6b376eb5160 Mon Sep 17 00:00:00 2001 From: xtqqczze <45661989+xtqqczze@users.noreply.github.com> Date: Fri, 24 Oct 2025 17:56:44 +0100 Subject: [PATCH] Fix documentation to clarify culture name usage for case-insensitive comparisons in GeneratedRegexAttribute --- .../Text/RegularExpressions/GeneratedRegexAttribute.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libraries/System.Text.RegularExpressions/src/System/Text/RegularExpressions/GeneratedRegexAttribute.cs b/src/libraries/System.Text.RegularExpressions/src/System/Text/RegularExpressions/GeneratedRegexAttribute.cs index 6f8b300225414b..de4123fccf3195 100644 --- a/src/libraries/System.Text.RegularExpressions/src/System/Text/RegularExpressions/GeneratedRegexAttribute.cs +++ b/src/libraries/System.Text.RegularExpressions/src/System/Text/RegularExpressions/GeneratedRegexAttribute.cs @@ -40,7 +40,7 @@ public GeneratedRegexAttribute([StringSyntax(StringSyntaxAttribute.Regex, nameof /// Initializes a new instance of the with the specified pattern and options. /// The regular expression pattern to match. /// A bitwise combination of the enumeration values that modify the regular expression. - /// The name of a culture to be used for case sensitive comparisons. is not case-sensitive. + /// The name of a culture to be used for case-insensitive comparisons. is not case-sensitive. /// /// For a list of predefined culture names on Windows systems, see the Language tag column in the list of /// language/region names supported by Windows. Culture names follow the standard defined by BCP 47. In addition, @@ -64,7 +64,7 @@ public GeneratedRegexAttribute([StringSyntax(StringSyntaxAttribute.Regex, nameof /// The regular expression pattern to match. /// A bitwise combination of the enumeration values that modify the regular expression. /// A time-out interval (milliseconds), or to indicate that the method should not time out. - /// The name of a culture to be used for case sensitive comparisons. is not case-sensitive. + /// The name of a culture to be used for case-insensitive comparisons. is not case-sensitive. /// /// For a list of predefined culture names on Windows systems, see the Language tag column in the list of /// language/region names supported by Windows. Culture names follow the standard defined by BCP 47. In addition, @@ -89,6 +89,6 @@ public GeneratedRegexAttribute([StringSyntax(StringSyntaxAttribute.Regex, nameof /// Gets a time-out interval (milliseconds), or to indicate that the method should not time out. public int MatchTimeoutMilliseconds { get; } - /// Gets the name of the culture to be used for case sensitive comparisons. + /// Gets the name of the culture to be used for case-insensitive comparisons. public string CultureName { get; } }