Mikhus/domurl

query parameter with @ symbol not parsing correctly.

Open

#41 opened on Apr 1, 2019

View on GitHub
 (1 comment) (0 reactions) (0 assignees)JavaScript (100 forks)batch import
help wanted

Repository metrics

Stars
 (531 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Try this out:

var url = new Url("http://example.com/some/path?a=b&c=test@someAnchor");

url.toString()
>>>"http://example.com%2Fsome%2Fpath%3Fa%3Db%26c%3Dtest@example.com/some/path?a=b&c=test%40someAnchor"

Contributor guide