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 66- Always pass typeScopedContext to _ expandObject.
77- Allow a keyword to exist when expanding in _ expandObject when the key is ` @included ` or ` @type ` .
88- Improve isDouble to look for big integers.
9+ - URI removeDotSegments only ensures preceding '/' if was already absolute.
910
1011## 2.0.2 - 2020-01-17
1112
Original file line number Diff line number Diff line change @@ -262,8 +262,8 @@ api.removeDotSegments = path => {
262262 output . push ( next ) ;
263263 }
264264
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 ] !== '' ) {
267267 output . unshift ( '' ) ;
268268 }
269269 if ( output . length === 1 && output [ 0 ] === '' ) {
Original file line number Diff line number Diff line change @@ -334,10 +334,6 @@ const TEST_TYPES = {
334334 / h t m l - m a n i f e s t .j s o n l d # t r 0 2 0 $ / ,
335335 / h t m l - m a n i f e s t .j s o n l d # t r 0 2 1 $ / ,
336336 / h t m l - m a n i f e s t .j s o n l d # t r 0 2 2 $ / ,
337- // IRI resolution
338- / t o R d f - m a n i f e s t .j s o n l d # t 0 1 3 0 $ / ,
339- / t o R d f - m a n i f e s t .j s o n l d # t 0 1 3 1 $ / ,
340- / t o R d f - m a n i f e s t .j s o n l d # t 0 1 3 2 $ / ,
341337 // Invalid Statement
342338 / t o R d f - m a n i f e s t .j s o n l d # t e 0 7 5 $ / ,
343339 / 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