Commit 563bb41
Lukas Puehringer
Update TARGETPATH and PATHPATTERN recommendations
In addition to recommending the omission of leading directory
separators, this commit adds a recommendation for forward slashes
as preferred directory separators in TARGETPATH and PATHPATTERN.
The rationale is that a TARGETPATH needs to be concatenated with
a mirror's base URL, and as such it might yield unexpected
behavior with non standardized paths. Same goes for Unix
shell-style pattern matching of target paths using PATHPATTERN.
As suggested by @erickt this commit adds a reference to the
"path-relative-URL string" definition from the WHATWG URL spec as
the preferred TARGETPATH style.
This commit also switches to using the term "directory separator"
instead of the prior used "path separator" to disambiguate from
characters that separate paths (e.g. colon on Unix).1 parent 6c6eb9d commit 563bb41
1 file changed
Lines changed: 12 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
806 | 806 | | |
807 | 807 | | |
808 | 808 | | |
809 | | - | |
810 | | - | |
811 | | - | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
812 | 816 | | |
813 | 817 | | |
814 | 818 | | |
| |||
881 | 885 | | |
882 | 886 | | |
883 | 887 | | |
884 | | - | |
885 | | - | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
886 | 893 | | |
887 | 894 | | |
888 | 895 | | |
| |||
0 commit comments