NaturalCycles/js-lib

View on GitHub
src/string/regex.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
/**
 * Simple, intentionally not exhaustive regex to match an email address.
 *
 * Source: https://regexr.com/3e48o
 */
export const SIMPLE_EMAIL_REGEX = /^[\w-.]+@([\w-]+\.)+[\w-]{2,4}$/