Skip to content

Commit 67c5f6d

Browse files
konstantin-stepanetseransakal
authored andcommitted
feat: expose a url validation (#31)
1 parent f2fbb85 commit 67c5f6d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

kaltura-ui/src/validators/validators.ts

+7
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,11 @@ export class KalturaValidators {
3333
return URL_REGEX.test(control.value) ? null : {'url': true};
3434
}
3535

36+
/**
37+
* Url validation
38+
*/
39+
static isUrlValid(url: string): boolean {
40+
return URL_REGEX.test(url);
41+
}
42+
3643
}

0 commit comments

Comments
 (0)