File tree Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 3
3
### Fixed
4
4
- Support recusrive scoped contexts.
5
5
- Various EARL report updates.
6
+ - Fixed ` prependBase ` to start path with a '/' for a zero length path
7
+ if there is an authority in base.
6
8
7
9
### Changed
8
10
- Better support for using a processed context for ` null ` and caching
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ api.prependBase = (base, iri) => {
107
107
108
108
// append relative path to the end of the last directory from base
109
109
path = path . substr ( 0 , path . lastIndexOf ( '/' ) + 1 ) ;
110
- if ( path . length > 0 && path . substr ( - 1 ) !== '/' ) {
110
+ if ( ( path . length > 0 || base . authority ) && path . substr ( - 1 ) !== '/' ) {
111
111
path += '/' ;
112
112
}
113
113
path += rel . path ;
Original file line number Diff line number Diff line change @@ -59,9 +59,6 @@ const TEST_TYPES = {
59
59
// NOTE: idRegex format:
60
60
//MMM-manifest#tNNN$/,
61
61
idRegex : [
62
- // IRI resolution (PR #384)
63
- / e x p a n d - m a n i f e s t # t 0 1 2 9 $ / ,
64
-
65
62
// html
66
63
/ h t m l - m a n i f e s t # t e 0 0 1 $ / ,
67
64
/ h t m l - m a n i f e s t # t e 0 0 2 $ / ,
@@ -182,9 +179,6 @@ const TEST_TYPES = {
182
179
// NOTE: idRegex format:
183
180
//MMM-manifest#tNNN$/,
184
181
idRegex : [
185
- // IRI resolution (PR #384)
186
- / t o R d f - m a n i f e s t # t e 1 2 9 $ / ,
187
-
188
182
// well formed
189
183
/ t o R d f - m a n i f e s t # t w f 0 5 $ / ,
190
184
You can’t perform that action at this time.
0 commit comments