-
Notifications
You must be signed in to change notification settings - Fork 274
Open
Description
13] pry(main)> u = Addressable::URI.parse('../folder:2/readme.md')
=> #<Addressable::URI:0x1de84 URI:../folder:2/readme.md>
[14] pry(main)> u.normalize
Addressable::URI::InvalidURIError: Cannot assemble URI string with ambiguous path: 'folder:2/readme.md'
from /Users/bubbis/.local/share/mise/installs/ruby/3.3.7/lib/ruby/gems/3.3.0/gems/addressable-2.8.7/lib/addressable/uri.rb:2344:in `to_s'
I expect folder%2F2/readme.md and a successful return. Should that be the case? The issue would then point to the regex below which does not take the relative part into account which gets trimmed as per standard.
addressable/lib/addressable/uri.rb
Line 1538 in 3450895
| if self.scheme == nil && path =~ NORMPATH |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels