File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 6
6
- Always pass typeScopedContext to _ expandObject.
7
7
- Allow a keyword to exist when expanding in _ expandObject when the key is ` @included ` or ` @type ` .
8
8
- Improve isDouble to look for big integers.
9
+ - URI removeDotSegments only ensures preceding '/' if was already absolute.
9
10
10
11
## 2.0.2 - 2020-01-17
11
12
Original file line number Diff line number Diff line change @@ -262,8 +262,8 @@ api.removeDotSegments = path => {
262
262
output . push ( next ) ;
263
263
}
264
264
265
- // ensure output has leading /
266
- if ( output . length > 0 && output [ 0 ] !== '' ) {
265
+ // if path was absolute, ensure output has leading /
266
+ if ( path [ 0 ] === '/' && output . length > 0 && output [ 0 ] !== '' ) {
267
267
output . unshift ( '' ) ;
268
268
}
269
269
if ( output . length === 1 && output [ 0 ] === '' ) {
Original file line number Diff line number Diff line change @@ -337,10 +337,6 @@ const TEST_TYPES = {
337
337
/ h t m l - m a n i f e s t .j s o n l d # t r 0 2 0 $ / ,
338
338
/ h t m l - m a n i f e s t .j s o n l d # t r 0 2 1 $ / ,
339
339
/ h t m l - m a n i f e s t .j s o n l d # t r 0 2 2 $ / ,
340
- // IRI resolution
341
- / t o R d f - m a n i f e s t .j s o n l d # t 0 1 3 0 $ / ,
342
- / t o R d f - m a n i f e s t .j s o n l d # t 0 1 3 1 $ / ,
343
- / t o R d f - m a n i f e s t .j s o n l d # t 0 1 3 2 $ / ,
344
340
// Invalid Statement
345
341
/ t o R d f - m a n i f e s t .j s o n l d # t e 0 7 5 $ / ,
346
342
/ t o R d f - m a n i f e s t .j s o n l d # t e 1 1 1 $ / ,
You can’t perform that action at this time.
0 commit comments