MCPcopy Create free account
hub / github.com/codecombat/codecombat / isValidEmail

Function isValidEmail

app/core/utils.js:1236–1236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1234
1235const emailRegex = /[A-z0-9._%+-]+@[A-z0-9.-]+\.[A-z]{2,63}/
1236const isValidEmail = email => emailRegex.test(email != null ? email.trim().toLowerCase() : undefined)
1237
1238const formatStudentLicenseStatusDate = function (status, date) {
1239 const string = (() => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected