Skip to content

Email pattern matches some things that are not email #165

Done

Description

@undsoft

Not sure whether this can be fixed properly, because technically those strings are under the RFC, but I'm going to create the ticket anyway.

All of the following match, which may be problem if you use the library to sanitize technical logs.

Input Detected as EMAIL
[email protected] installed [email protected]
npm i @types/[email protected] types/[email protected]
[email protected] [email protected]
[email protected] [email protected]
[email protected] [email protected]
[email protected] [email protected]
[email protected] [email protected]
weird {x}@acme.io x}@acme.io

Activity

  1. BilliamBaSH commented on Nov 14, 2026

    @BilliamBaSH
    Contributor

    This should be fixed by #168, which is now merged. Happy to adjust if anything still slips through.

  2. sam247 commented on Nov 25, 2026

    @sam247
    Owner

    Fixed by #168, which is merged and included in @openredaction/core 2.0.1: the email pattern no longer matches package versions ([email protected]), image file names ([email protected]), prices ([email protected]) or numeric TLDs ([email protected]).

    Closing as completed. 2.0.1 has not reached npm yet — the Publish run is waiting on the npm-publish approval — so if you install from the registry you will still see 1.1.5 behaviour for now. Reopen if anything still slips through after 2.0.1 is published.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions