File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 1
1
import { checkRegex , Rule } from 'rulr' ;
2
2
import { createTypeWarning } from '../warnings/TypeWarning' ;
3
3
4
- const regex = / ^ \w + : \/ \/ / i;
4
+ const regex = / ^ \w + : / i;
5
5
const warningConstructor = createTypeWarning ( 'Internationalized Resource Identifier (IRI)' ) ;
6
6
7
7
export default checkRegex ( regex , warningConstructor ) as Rule ;
Original file line number Diff line number Diff line change @@ -28,4 +28,8 @@ export default (test: Test) => {
28
28
// Tests from the conformance suite.
29
29
itsInvalid ( 'ab=c://should.fail.com' , 'not an IRI' , test ) ;
30
30
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 ) ;
31
35
} ;
You can’t perform that action at this time.
0 commit comments