Commit 79931261bcda58db03c03c8f7ed0ae36d538adcf
1 parent
0d7cd5f6
Exists in
master
and in
4 other branches
Remove regular expressions
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
translate-api/controllers/translate.js
... | ... | @@ -25,7 +25,7 @@ exports.translate = function(req, res, next) { |
25 | 25 | amqp.receiveFromQueue(id, 'translations', false, res, function(err, message) { |
26 | 26 | if (err) |
27 | 27 | return error.internalError('An internal communication error has occurred.', next); |
28 | - res.status(200).send(message.replace(/\"/g, "")); | |
28 | + res.status(200).send(message); | |
29 | 29 | }); |
30 | 30 | }); |
31 | 31 | }; |
... | ... | @@ -44,7 +44,7 @@ exports.translateURL = function(req, res, next) { |
44 | 44 | amqp.receiveFromQueue(id, 'translations', false, res, function(err, message) { |
45 | 45 | if (err) |
46 | 46 | return error.internalError('An internal communication error has occurred.', next); |
47 | - res.status(200).send(message.replace(/\"/g, "")); | |
47 | + res.status(200).send(message); | |
48 | 48 | }); |
49 | 49 | }); |
50 | 50 | }; | ... | ... |