Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions purl-specification.md
Original file line number Diff line number Diff line change
Expand Up @@ -492,8 +492,9 @@ To parse a `purl` string in its components:
- Percent-decode each segment
- Discard any ‘.’ or ‘..’ segment from that split
- UTF-8-decode each segment if needed in your programming language
- Join segments back with a ‘/’
- This is the `subpath`
- This list of path segments is the ``subpath``

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dont concat or further handle the segments, similar to qualifiers.
https://github.com/package-url/purl-spec/blob/main/purl-specification.md?plain=1#L515

- You may escape these path segments if needed by your environment (operating system, file system, programming language, shell, etc)
- You may join these path segments with the path delimiter of your environment (operating system, file system, etc)

- Split the `remainder` once from right on ‘?’

Expand Down