MCPcopy Create free account
hub / github.com/codecombat/codecombat / 'email'

Function 'email'

app/core/initialize.js:250–256  ·  view source on GitHub ↗
(email)

Source from the content-addressed store, hash-verified

248 const forms = require('core/forms')
249 return tv4.addFormat({
250 'email' (email) {
251 if (forms.validateEmail(email)) {
252 return null
253 } else {
254 return { code: tv4.errorCodes.FORMAT_CUSTOM, message: $.t('form_validation_errors.requireValidEmail') }
255 }
256 },
257 'phoneNumber' (phoneNumber) {
258 if (forms.validatePhoneNumber(phoneNumber)) {
259 return null

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected