pumpkin-zbh / amqp_comm_example

Found unnecessary escape characters JS-0097
Anti-pattern
Minor
a year ago2 years old
Unnecessary escape character: \'
26    let  msg = context.message;
27    let messageId = msg.message_id;
28    let topic = msg.application_properties.topic;
29    let content =JSON.parse(Buffer.from(msg.body.content).toString().replace(/\'/g, '"'));30    if (topic.indexOf('/user/update') !== -1) {
31        console.log("\nTopic: " + topic)
32        if (content.subType === "SCAN") {