File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 1414
1515### Fixed
1616- JSON literal value handling issues.
17+ - Do minimal checking to see if IRIs are valid by making sure they contain
18+ no whitespace.
1719
1820## 2.0.0 - 2019-12-09
1921
Original file line number Diff line number Diff line change @@ -277,7 +277,7 @@ api.removeDotSegments = path => {
277277// http://jmrware.com/articles/2009/uri_regexp/URI_regex.html
278278
279279// 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 ] * $ / ;
281281
282282/**
283283 * 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 = {
7272 / 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 $ / ,
7373 / 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 $ / ,
7474 / 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 $ / ,
7775 // html
7876 / h t m l - m a n i f e s t .j s o n l d # t e 0 0 1 $ / ,
7977 / h t m l - m a n i f e s t .j s o n l d # t e 0 0 2 $ / ,
@@ -334,8 +332,6 @@ const TEST_TYPES = {
334332 / t o R d f - m a n i f e s t .j s o n l d # t e 1 1 9 $ / ,
335333 / t o R d f - m a n i f e s t .j s o n l d # t e 1 2 0 $ / ,
336334 / t o R d f - m a n i f e s t .j s o n l d # t e 1 2 2 $ / ,
337- // invalid datatype IRI
338- / t o R d f - m a n i f e s t .j s o n l d # t e 1 2 3 $ / ,
339335 // well formed
340336 / t o R d f - m a n i f e s t .j s o n l d # t w f 0 1 $ / ,
341337 / 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