@nospamproxy/core
Preparing search index...
common/validation/DomainRule
DomainRule
Class DomainRule
Custom rule for domain name validation.
Hierarchy
BaseValidationRule
DomainRule
Index
Constructors
constructor
Methods
execute
Constructors
constructor
new
DomainRule
(
mode
?:
DomainMatchMode
,
validCallback
?:
(
punycode
:
string
)
=>
void
,
logger
?:
ILogger
|
null
,
)
:
DomainRule
Parameters
mode
:
DomainMatchMode
= DomainMatchMode.full
Optional
validCallback
:
(
punycode
:
string
)
=>
void
logger
:
ILogger
|
null
= null
Returns
DomainRule
Methods
execute
execute
(
value
:
string
,
_obj
?:
IValidateable
)
:
boolean
Parameters
value
:
string
Optional
_obj
:
IValidateable
Returns
boolean
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
execute
@nospamproxy/core
Loading...
Custom rule for domain name validation.