File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 11import { checkRegex , Rule } from 'rulr' ;
22import { createTypeWarning } from '../warnings/TypeWarning' ;
33
4- const regex = / ^ \w + : \/ \/ / i;
4+ const regex = / ^ \w + : / i;
55const warningConstructor = createTypeWarning ( 'Internationalized Resource Identifier (IRI)' ) ;
66
77export default checkRegex ( regex , warningConstructor ) as Rule ;
Original file line number Diff line number Diff line change @@ -28,4 +28,8 @@ export default (test: Test) => {
2828 // Tests from the conformance suite.
2929 itsInvalid ( 'ab=c://should.fail.com' , 'not an IRI' , test ) ;
3030 itsInvalid ( 'not.a.valid.iri.com/verb' , 'not an IRI' , test ) ;
31+
32+ // LL-472
33+ itsValid ( 'urn:071b8229-c909-5d6f-b250-8cbb6f36fda7:Test:Test_0' , test ) ;
34+ itsValid ( 'urn:uuid:a4942cbb-aabf-526f-8f69-379f265416b5' , test ) ;
3135} ;
You can’t perform that action at this time.
0 commit comments