diff --git a/src/regexValues/iri.ts b/src/regexValues/iri.ts index 43a42f8c..3b6cfb50 100644 --- a/src/regexValues/iri.ts +++ b/src/regexValues/iri.ts @@ -1,7 +1,7 @@ import { checkRegex, Rule } from 'rulr'; import { createTypeWarning } from '../warnings/TypeWarning'; -const regex = /^\w+:\/\//i; +const regex = /^\w+:/i; const warningConstructor = createTypeWarning('Internationalized Resource Identifier (IRI)'); export default checkRegex(regex, warningConstructor) as Rule; diff --git a/src/tests/regexValues/iri.ts b/src/tests/regexValues/iri.ts index 9c825e9b..d4faf276 100644 --- a/src/tests/regexValues/iri.ts +++ b/src/tests/regexValues/iri.ts @@ -28,4 +28,8 @@ export default (test: Test) => { // Tests from the conformance suite. itsInvalid('ab=c://should.fail.com', 'not an IRI', test); itsInvalid('not.a.valid.iri.com/verb', 'not an IRI', test); + + // LL-472 + itsValid('urn:071b8229-c909-5d6f-b250-8cbb6f36fda7:Test:Test_0', test); + itsValid('urn:uuid:a4942cbb-aabf-526f-8f69-379f265416b5', test); };