Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alanagoyal/docbase
/ isValidEmail
Function
isValidEmail
utils/validation.ts:1–4 ·
view source on GitHub ↗
(email: string)
Source
from the content-addressed store, hash-verified
1
export
function
isValidEmail(email: string): boolean {
2
const
emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
3
return
emailRegex.test(email);
4
}
Callers
1
handleRecipientChange
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected