Skip to content

decodeQuery does not work as described in docs.html #137

@hankhero

Description

@hankhero

If you run the examples in the docs, docs.html#static-decodeQuery, they don't work as explained. Here are two, currently failing, tests I made based on docs.html that shows it. Also, the functions in this section are lacking unit-tests. I volunteer to help code and fix, but then I need some help explain how the functions are specified to work. Is the docs or the code faulty?

test("encodeQuery", function () {
    equal(URI.encodeQuery(" "), "+");
    equal(URI.encode(" "), "%20");
});

test("decodeQuery", function () {
    equal(URI.decodeQuery("+"), " ");
    equal(URI.decode("+"), "+");
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions