We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4478dc3 commit 16c66a0Copy full SHA for 16c66a0
2 files changed
src/regexValues/iri.ts
@@ -1,7 +1,7 @@
1
import { checkRegex, Rule } from 'rulr';
2
import { createTypeWarning } from '../warnings/TypeWarning';
3
4
-const regex = /^\w+:\/\//i;
+const regex = /^\w+:/i;
5
const warningConstructor = createTypeWarning('Internationalized Resource Identifier (IRI)');
6
7
export default checkRegex(regex, warningConstructor) as Rule;
src/tests/regexValues/iri.ts
@@ -28,4 +28,8 @@ export default (test: Test) => {
28
// Tests from the conformance suite.
29
itsInvalid('ab=c://should.fail.com', 'not an IRI', test);
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);
35
};
0 commit comments