import { AbstractControl } from "../abstract/abstract-control" ; import { ValidatorFn } from '../models/interface/validator-fn' ; import { RegExRule } from "../util/regex-rules" ; import { DefaultConfig } from "../models/config/default-config" ; import { AnnotationTypes } from "../core/validator.static" ; import { regexValidation } from "../validators-function/regex-validation.function" ; export function urlValidator ( configModel ) { return ( control ) : { [ key ] : any ; } | null => { return regexValidation ( configModel , control , RegExRule . url , AnnotationTypes . url ) ; } ; }