Closed Barbapapazes closed 2 years ago
Hello,
We are speaking about the email rules.
email
You say that we can use any options available in validator.js but in the code, options returned are filtered.
return { compiledOptions: { domain_specific_validation: options.domainSpecificValidation, allow_ip_domain: options.allowIpDomain, ignore_max_length: options.ignoreMaxLength, sanitize: sanitizationOptions, }, };
So it's impossible to use an option list host_blacklist !
host_blacklist
And here is the type
/** * Options to validate email */ export type EmailValidationOptions = { allowDisplayName?: boolean; requireDisplayName?: boolean; allowUtf8LocalPart?: boolean; requireTld?: boolean; ignoreMaxLength?: boolean; allowIpDomain?: boolean; domainSpecificValidation?: boolean; hostBlacklist?: string[]; };
Hello @thetutlage,
I'm sorry to only view this now but you didn't added hostBlacklist. Is that wanted?
hostBlacklist
Hello,
We are speaking about the
email
rules.You say that we can use any options available in validator.js but in the code, options returned are filtered.
So it's impossible to use an option list
host_blacklist
!And here is the type