Skip to content

[fix] a@abc.de does not match #8

Description

@analog-nico

Describe the bug

I ran it on RunKit and on my local system:

Node.js version: 18.11 and 20.9

OS version: RunKit’s OS and Mac OS X

Description: emailRegex.test('a@abc.de') returns false. Note that the local part has only 1 character. If I add a second character it works fine.

Actual behavior

emailRegex.test('a@abc.de') returns false

Expected behavior

emailRegex.test('a@abc.de') returns true

Code to reproduce

require("re2/package.json"); // re2 is a peer dependency. 
var emailRegexSafe = require("email-regex-safe")

let emailRegex = emailRegexSafe({ exact: true, gmail: false })

emailRegex.test('a@abc.de')

Run this code on RunKit

Checklist

  • I have searched through GitHub issues for similar issues.
  • I have completely read through the README and documentation.
  • I have tested my code with the latest version of Node.js and this package and confirmed it is still not working.

Activity

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions