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
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')returnsfalse. 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')returnsfalseExpected behavior
emailRegex.test('a@abc.de')returnstrueCode to reproduce
Run this code on RunKit
Checklist