From 79a64f4b906c362f9ec708f835144a48df4e0a83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=9B=BD=E4=BC=9F?= <366193849@qq.com> Date: Wed, 4 Aug 2021 14:05:56 +0800 Subject: [PATCH] =?UTF-8?q?tab=E9=97=B4=E9=9A=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FastGithub.Dns/HostsValidator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FastGithub.Dns/HostsValidator.cs b/FastGithub.Dns/HostsValidator.cs index 992ea54..2004f46 100644 --- a/FastGithub.Dns/HostsValidator.cs +++ b/FastGithub.Dns/HostsValidator.cs @@ -100,7 +100,7 @@ namespace FastGithub.Dns return false; } - var items = record.Split(' ', StringSplitOptions.RemoveEmptyEntries); + var items = record.Split(new[] { ' ', '\t' }, StringSplitOptions.RemoveEmptyEntries); if (items.Length < 2) { return false;