garycourt / uri-js

An RFC 3986 compliant, scheme extendable URI parsing/validating/normalizing/resolving library for JavaScript
Other
305 stars 69 forks source link

do not percent-escape ipv6 hosts #16

Closed bkw closed 7 years ago

bkw commented 7 years ago

This pr adds [, ] and : to the class of allowed characters in host names, so that urls with ipv6 adresses are no longer percent-escaped during parsing or normalization.

bkw commented 7 years ago

this does not yet work with URI__VALIDATE_SUPPORT=false, looking into it now.

bkw commented 7 years ago

I added a simple pattern for ipv6 adresses to URI_PARSE as well. Please yell if you want me to rebase or remove the build file commits.

bkw commented 7 years ago

I rebased to remove the build files.

garycourt commented 7 years ago

This has been merged into v3.