Skip to content

Commit

Permalink
fix explode
Browse files Browse the repository at this point in the history
  • Loading branch information
mwebber92 committed Sep 24, 2020
1 parent ac98a1c commit 8e4254d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/update-top-level-domains.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'); }
Expand Down

0 comments on commit 8e4254d

Please sign in to comment.