Skip to content

URI.query(true) throws if the url is clean #6

Closed
@nicogranelli

Description

@nicogranelli

for example

console.log(URI("http://google.com?s=q").search(true)); //OK
console.log(URI("http://google.com?s=").search(true)); //OK
console.log(URI("http://google.com?s").search(true)); //OK
console.log(URI("http://google.com").search(true)); //Throws

I'm sure is something simple to fix, but I don't have time right now. I can fix it later, but I wanted to submit this before I forgot about it

BTW: Really cool library :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions