File tree 3 files changed +3
-6
lines changed
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 @@ -334,10 +334,6 @@ const TEST_TYPES = {
334
334
/ h t m l - m a n i f e s t .j s o n l d # t r 0 2 0 $ / ,
335
335
/ h t m l - m a n i f e s t .j s o n l d # t r 0 2 1 $ / ,
336
336
/ 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 $ / ,
341
337
// Invalid Statement
342
338
/ t o R d f - m a n i f e s t .j s o n l d # t e 0 7 5 $ / ,
343
339
/ 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