From 5160f5b9b93e25381d366e251cc6cde127baf30b Mon Sep 17 00:00:00 2001 From: Jason Nelson Date: Tue, 30 Jan 2024 12:29:45 -0800 Subject: [PATCH] Use utf-8 literal --- MimeKit/Utils/ParseUtils.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MimeKit/Utils/ParseUtils.cs b/MimeKit/Utils/ParseUtils.cs index f5c7f98e83..f7f76b8412 100644 --- a/MimeKit/Utils/ParseUtils.cs +++ b/MimeKit/Utils/ParseUtils.cs @@ -390,7 +390,7 @@ public static bool TryParseDomain (byte[] text, ref int index, int endIndex, Rea return TryParseDotAtom (text, ref index, endIndex, sentinels, throwOnError, "domain", out domain); } - static ReadOnlySpan GreaterThanOrAt => new[] { (byte) '>', (byte) '@' }; + static ReadOnlySpan GreaterThanOrAt => ">@"u8; public static bool TryParseMsgId (byte[] text, ref int index, int endIndex, bool requireAngleAddr, bool throwOnError, out string msgid) {