Skip to content

backtick escape issue for symbol #51

@cheduo

Description

@cheduo

Hi Michael,

I notice a small issue in sending Q symbol with backtick; Actually we need an extra space to escape the leading backtick. I just tested following code :

var nodeq = require("node-q");
nodeq.connect({host: "localhost", port: 5000}, function(err, con) {
    if (err) throw err;
    con.k("`a`b`c", function(err, res) {
        if (err) throw err;
        console.log("result", res); // Error a`b`c
    });    
    con.k(" `a`b`c", function(err, res) {
        if (err) throw err;
        console.log("result", res); // "result" [ 'a', 'b', 'c' ]
    });
});

We can hack it on user side by adding extra space to query string, but is it possible to fix it at package level ?

Thanks,
Duo

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions