File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
# jsonld ChangeLog
2
2
3
+ ### Fixed
4
+ - compact t0111 test: "Keyword-like relative IRIs"
5
+
3
6
### Changed
4
7
- Change EARL Assertor to Digital Bazaar, Inc.
5
8
- Update eslint dependencies.
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ const {
34
34
} = require ( './url' ) ;
35
35
36
36
const {
37
+ REGEX_KEYWORD ,
37
38
addValue : _addValue ,
38
39
asArray : _asArray ,
39
40
compareShortestLeast : _compareShortestLeast
@@ -927,7 +928,8 @@ api.compactIri = ({
927
928
// The None case preserves rval as potentially relative
928
929
return iri ;
929
930
} else {
930
- return _removeBase ( _prependBase ( base , activeCtx [ '@base' ] ) , iri ) ;
931
+ const _iri = _removeBase ( _prependBase ( base , activeCtx [ '@base' ] ) , iri ) ;
932
+ return REGEX_KEYWORD . test ( _iri ) ? `./${ _iri } ` : _iri ;
931
933
}
932
934
} else {
933
935
return _removeBase ( base , iri ) ;
Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ const TEST_TYPES = {
35
35
// NOTE: idRegex format:
36
36
//MMM-manifest#tNNN$/,
37
37
idRegex : [
38
- / c o m p a c t - m a n i f e s t # t 0 1 1 1 $ / ,
39
38
/ c o m p a c t - m a n i f e s t # t 0 1 1 2 $ / ,
40
39
/ c o m p a c t - m a n i f e s t # t 0 1 1 3 $ / ,
41
40
// html
You can’t perform that action at this time.
0 commit comments