{"action":"opened","issue":{"url":"https://api.github.com/repos/themsaid/laravel-langman/issues/79","repository_url":"https://api.github.com/repos/themsaid/laravel-langman","labels_url":"https://api.github.com/repos/themsaid/laravel-langman/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/themsaid/laravel-langman/issues/79/comments","events_url":"https://api.github.com/repos/themsaid/laravel-langman/issues/79/events","html_url":"https://github.com/themsaid/laravel-langman/issues/79","id":372899457,"node_id":"MDU6SXNzdWUzNzI4OTk0NTc=","number":79,"title":"key with ' in it, breaks it","user":{"login":"sebastiaanspeck","id":12570668,"node_id":"MDQ6VXNlcjEyNTcwNjY4","avatar_url":"https://avatars1.githubusercontent.com/u/12570668?v=4","gravatar_id":"","url":"https://api.github.com/users/sebastiaanspeck","html_url":"https://github.com/sebastiaanspeck","followers_url":"https://api.github.com/users/sebastiaanspeck/followers","following_url":"https://api.github.com/users/sebastiaanspeck/following{/other_user}","gists_url":"https://api.github.com/users/sebastiaanspeck/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastiaanspeck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastiaanspeck/subscriptions","organizations_url":"https://api.github.com/users/sebastiaanspeck/orgs","repos_url":"https://api.github.com/users/sebastiaanspeck/repos","events_url":"https://api.github.com/users/sebastiaanspeck/events{/privacy}","received_events_url":"https://api.github.com/users/sebastiaanspeck/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-23T09:28:18Z","updated_at":"2018-10-23T09:28:18Z","closed_at":null,"author_association":"NONE","body":"- Laravel Version: 5.7.9\r\n- PHP Version: 7.1.19\r\n- Database Driver & Version: MySQL 5.7.23\r\n\r\n### Description:\r\nWhen you have a key in a language-file with a `\\'` in it and run `php artisan langman:missing` it works okay and you can translate things, but when you run `php artisan langman:missing` again, it crashes because langman overwrites the key with `\\'` and changes it to `'` \r\n\r\n### Steps to reproduce:\r\n1. Add a key to a language-file with `\\'` in it. e.a. 'today\\'s posts'\r\n2. Run `php artisan langman:missing` (also works with `php artisan langman:trans KEY`) (note: you also cannot use the 'today's posts' as key)\r\n3. Translate (or press Enter)\r\n4. Run `php artisan langman:missing` again -> crash and 'today\\'s posts' is changed to 'today's posts'"}}
{"actor":{"display_login":"sebastiaanspeck"}}