MCPcopy Create free account
hub / github.com/getsentry/sentry-react-native / isValidEmail

Function isValidEmail

packages/core/src/js/feedback/utils.ts:30–33  ·  view source on GitHub ↗
(email: string)

Source from the content-addressed store, hash-verified

28}
29
30export const isValidEmail = (email: string): boolean => {
31 const emailRegex = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;
32 return emailRegex.test(email);
33};
34
35/**
36 * Converts base64 string to Uint8Array on the web

Callers 1

FeedbackFormClass · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected