File tree 3 files changed +3
-5
lines changed
3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 8
8
9
9
### Fixed
10
10
- JSON literal value handling issues.
11
+ - Do minimal checking to see if IRIs are valid by making sure they contain
12
+ no whitespace.
11
13
12
14
## 2.0.0 - 2019-12-09
13
15
Original file line number Diff line number Diff line change @@ -277,7 +277,7 @@ api.removeDotSegments = path => {
277
277
// http://jmrware.com/articles/2009/uri_regexp/URI_regex.html
278
278
279
279
// regex to check for absolute IRI (starting scheme and ':') or blank node IRI
280
- const isAbsoluteRegex = / ^ ( [ A - Z a - z ] [ A - Z a - z 0 - 9 + - . ] * | _ ) : / ;
280
+ const isAbsoluteRegex = / ^ ( [ A - Z a - z ] [ A - Z a - z 0 - 9 + - . ] * | _ ) : [ ^ \s ] * $ / ;
281
281
282
282
/**
283
283
* Returns true if the given value is an absolute IRI or blank node IRI, false
Original file line number Diff line number Diff line change @@ -72,8 +72,6 @@ const TEST_TYPES = {
72
72
/ e x p a n d - m a n i f e s t .j s o n l d # t 0 1 1 9 $ / ,
73
73
/ e x p a n d - m a n i f e s t .j s o n l d # t 0 1 2 0 $ / ,
74
74
/ e x p a n d - m a n i f e s t .j s o n l d # t 0 1 2 2 $ / ,
75
- // invalid datatype IRI
76
- / e x p a n d - m a n i f e s t .j s o n l d # t 0 1 2 3 $ / ,
77
75
// html
78
76
/ h t m l - m a n i f e s t .j s o n l d # t e 0 0 1 $ / ,
79
77
/ h t m l - m a n i f e s t .j s o n l d # t e 0 0 2 $ / ,
@@ -331,8 +329,6 @@ const TEST_TYPES = {
331
329
/ t o R d f - m a n i f e s t .j s o n l d # t e 1 1 9 $ / ,
332
330
/ t o R d f - m a n i f e s t .j s o n l d # t e 1 2 0 $ / ,
333
331
/ t o R d f - m a n i f e s t .j s o n l d # t e 1 2 2 $ / ,
334
- // invalid datatype IRI
335
- / t o R d f - m a n i f e s t .j s o n l d # t e 1 2 3 $ / ,
336
332
// well formed
337
333
/ t o R d f - m a n i f e s t .j s o n l d # t w f 0 1 $ / ,
338
334
/ t o R d f - m a n i f e s t .j s o n l d # t w f 0 2 $ / ,
You can’t perform that action at this time.
0 commit comments