MCPcopy Index your code
hub / github.com/bytebase/bytebase / isValidEmail

Function isValidEmail

frontend/src/utils/util.ts:141–146  ·  view source on GitHub ↗
(email: string)

Source from the content-addressed store, hash-verified

139}
140
141export function isValidEmail(email: string) {
142 // Rather than using esoteric regex complying RFC 822/2822, we just use a naive but readable version
143 // which should work most of the time.
144 const re = /\S+@\S+\.\S+/;
145 return re.test(email);
146}
147
148export function randomString(
149 n: number,

Callers 7

UserSelectFunction · 0.90
AccountMultiSelectFunction · 0.90
sendCodeFunction · 0.90
EmailCodeSigninFormFunction · 0.90
PasswordForgotPageFunction · 0.90
SignupPageFunction · 0.90
GroupFormFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected