Skip to content

Commit

Permalink
Merge pull request #13 from NaincyKumariKnoldus/fix
Browse files Browse the repository at this point in the history
Added Escaped slashes: JSON_UNESCAPED_SLASHES
  • Loading branch information
Henrik B Hansen authored Jan 28, 2022
2 parents 9d72755 + 51e3b52 commit 3662430
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Translation.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function scan($mergeKeys = false): int
);
}

file_put_contents($this->baseFilename, json_encode($keys->sortKeys(), JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT));
file_put_contents($this->baseFilename, json_encode($keys->sortKeys(), JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES));

return $keys->count();
}
Expand Down

0 comments on commit 3662430

Please sign in to comment.