Skip to content

Commit 745f702

Browse files
committed
fix(iri): Fixes IRI validation by just checking for a scheme.
1 parent 2912596 commit 745f702

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/regexValues/iri.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { checkRegex, Rule } from 'rulr';
22
import { createTypeWarning } from '../warnings/TypeWarning';
33

4-
const regex = /^\w+:\/\/[^\/\#\?]*\/?[^\#\?]*\??[^\#]*\#?[^$]*$/i;
4+
const regex = /^\w+:\/\//i;
55
const warningConstructor = createTypeWarning('Internationalized Resource Identifier (IRI)');
66

77
export default checkRegex(regex, warningConstructor) as Rule;

0 commit comments

Comments
 (0)