Closed steve-todorov closed 1 year ago
This library can handle escaping all non-URI symbols. The problem is that your test case is wrong. The "#" symbol is the separator character for the fragment, and URI.parse
will treat it as such. You are responsible for escaping this character. It's like if you put an extra "/" somewhere in your URL and expect the library to know that this one character should be escaped and the others should not.
I understand your reasoning. Our client has some paths in S3 that are using #
within the path segments and was hoping this lib could be used to handle that case as well. Thanks for the reply @garycourt!
Bug
The library is not able to handle special signs in the URI path segments.
Example test case