Given an email address that doesn't have @ will result to the below error
Bad config value : {"where":"Email mask configuration","reasons":["Email must contain one '@'"]}
Wondering if we can add an option to ignore the invalid emails, and mask data till the end. for example with given below config
{
maskWith: '*',
unmaskedStartCharactersBeforeAt: 2,
unmaskedEndCharactersAfterAt: 1,
invalidEmailAddressBehavior: 'mask' // values can be 'ignore', 'error', 'mask'
}
and given this email address reza.com, it would return re******
and if value of invalidEmailAddressBehavior is equal to ignore , it would return reza.com (the original value without masking)
Given an email address that doesn't have
@
will result to the below errorWondering if we can add an option to ignore the invalid emails, and mask data till the end. for example with given below config
and given this email address
reza.com
, it would returnre******
and if value ofinvalidEmailAddressBehavior
is equal toignore
, it would returnreza.com
(the original value without masking)