From 8e4254d2a5bfac7da17db7116c9eb71a07752e92 Mon Sep 17 00:00:00 2001 From: Niko Date: Thu, 24 Sep 2020 18:08:57 +0300 Subject: [PATCH] fix explode --- scripts/update-top-level-domains.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/update-top-level-domains.php b/scripts/update-top-level-domains.php index 14ff153..6d8b6be 100755 --- a/scripts/update-top-level-domains.php +++ b/scripts/update-top-level-domains.php @@ -13,7 +13,7 @@ if (!is_string($topLevelDomains)) { die('Failed to fetch domains'); } -$topLevelDomains = explode(PHP_EOL, $topLevelDomains); +$topLevelDomains = preg_split('/\r\n|\r|\n/', $topLevelDomains); array_shift($topLevelDomains); if (!is_array($topLevelDomains)) { die('Unable to parse domains'); }