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 @@ -337,10 +337,6 @@ const TEST_TYPES = {
337337 / h t m l - m a n i f e s t .j s o n l d # t r 0 2 0 $ / ,
338338 / h t m l - m a n i f e s t .j s o n l d # t r 0 2 1 $ / ,
339339 / 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 $ / ,
344340 // Invalid Statement
345341 / t o R d f - m a n i f e s t .j s o n l d # t e 0 7 5 $ / ,
346342 / 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