We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 19a4965 + 2e760e3 commit d0b8330Copy full SHA for d0b8330
1 file changed
docs/how-to-parse.md
@@ -11,12 +11,11 @@ To parse a `purl` string in its components:
11
- Split the `purl` string once from right on '#'
12
13
- The left side is the `remainder`
14
- - Strip the right side from leading and trailing '/'
15
- - Split this on '/'
16
- - Discard any empty string segment from that split
+ - Split the right side on `/`
17
- Percent-decode each segment
18
- - Discard any '.' or '..' segment from that split
19
- UTF-8-decode each segment if needed in your programming language
+ - Discard any segment that is empty, or equal to `.` or `..`
+ - Report an error if any segment contains a slash `/`
20
- Join segments back with a '/'
21
- This is the `subpath`
22
0 commit comments