You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

redactEmail.js 313B

1234567891011
  1. import warn from './console/warn';
  2. import mightBeEmail from './mightBeEmail';
  3. var redacted = 'REDACTED (Potential Email Address)';
  4. export default function redactEmail(string) {
  5. if (mightBeEmail(string)) {
  6. warn('This arg looks like an email address, redacting.');
  7. return redacted;
  8. }
  9. return string;
  10. }