Skip to content

Commit

Permalink
Merge pull request #27 from mwebber92/master
Browse files Browse the repository at this point in the history
Fix explode
  • Loading branch information
daveearley authored Sep 24, 2020
2 parents ac98a1c + 8e4254d commit 9f0a65d
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 9f0a65d

Please sign in to comment.