ODCheckerCustomStructureOptions_UrlString interface
under construction
We are still working the API Reference! This page might be incomplete or doesn't contain all details!
Overview
This interface has the options for ODCheckerCustomStructure_UrlString
!
References
Properties
optional allowedExtensions
array ➜ string[]
Allowed extentions (string) => will match the end of the url (.png
,.svg
,...)
optional allowedHostnames
array ➜ (string|RegExp)[]
Allowed hostnames (string or regex) => will match domain + subdomain
optional allowedPaths
array ➜ (string|RegExp)[]
Allowed paths (string or regex) => will match path + extension (not domain + subdomain)
optional allowHttp
boolean ➜ boolean
Allow urls with http://
instead of https://
optional regex
type ➜ RegExp
A regex that will be executed on the entire url (including search params, protcol, domain, ...)