Skip to content

Commit

Permalink
Extract newlines more faithfully
Browse files Browse the repository at this point in the history
  • Loading branch information
Sainan committed Jun 4, 2024
1 parent 5273c82 commit e1840b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion download.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
{
echo "Downloading $name...\n";
$data = file_get_contents("https://content.warframe.com/PublicExport/Manifest/".$line);
$data = str_replace("\\r\r\n", "\\n", $data);
$data = str_replace("\\r\r\n", "\\r\\n", $data);
$data = str_replace("\t", "\\t", $data); // ExportWarframes_pl & ExportWeapons_pl use raw tabs in some strings
$data = json_encode(json_decode($data, true), JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
file_put_contents($name, $data);
Expand Down

0 comments on commit e1840b9

Please sign in to comment.