Skip to content

Commit 4d46481

Browse files
KSemenenkoCopilot
andauthored
Update ManagedCode.MimeTypes/MimeHelper.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 195f0cf commit 4d46481

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ManagedCode.MimeTypes/MimeHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public static partial class MimeHelper
3131

3232
private static readonly Regex ScriptPattern = new(@"^(?:application|text)/(?:javascript|ecmascript|x-php|x-sh|x-shellscript|x-python|x-ruby|x-perl)$", RegexOptions.Compiled | RegexOptions.IgnoreCase);
3333

34-
private static readonly char[] QueryFragmentSeparators = { '?', '#' };
34+
private static readonly SearchValues<char> QueryFragmentSeparators = SearchValues.Create(new[] { '?', '#' });
3535

3636
private static readonly HashSet<string> ScriptMimeSet = new(StringComparer.OrdinalIgnoreCase)
3737
{

0 commit comments

Comments
 (0)