diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-11-11 17:10:05 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-11-11 17:10:05 +0100 |
| commit | 000e0e339fe30af8652361a34a9e35a507e1f9b4 (patch) | |
| tree | a434a6e4b2a5f65c1f74857b447a595e3b913a7c | |
| parent | 527e3e851b0e356db8a4c88d8f48efb0ea702768 (diff) | |
| download | telesucker-000e0e339fe30af8652361a34a9e35a507e1f9b4.tar.gz telesucker-000e0e339fe30af8652361a34a9e35a507e1f9b4.zip | |
Revert "fix invalid JSON fix"
This reverts commit 527e3e851b0e356db8a4c88d8f48efb0ea702768.
| -rw-r--r-- | worker.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -147,7 +147,7 @@ amqp.connect(RABBITMQ_URI).then(async (rabbit) => { if (!response.body.startsWith("[")) { // invalid JSON // https://github.com/gamelocker/vainglory-assets/issues/325 - let hotfix = response.body.replace(/\{\s+"time":/g, ', { "time":'); + let hotfix = response.body.replace(/\{ "time":/g, ', { "time":'); // `},` -> `} \n ]` hotfix = "[" + hotfix.substring(2, hotfix.length) + "]"; response.body = JSON.parse(hotfix); |
