MCPcopy Create free account
hub / github.com/breck7/scroll / isValidEmail

Method isValidEmail

external/.scrollLibs.js:14087–14089  ·  view source on GitHub ↗
(email = "")

Source from the content-addressed store, hash-verified

14085 return content.replace(/</g, "&lt;")
14086 }
14087 static isValidEmail(email = "") {
14088 return email.toLowerCase().match(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/)
14089 }
14090 static capitalizeFirstLetter(str) {
14091 return str.charAt(0).toUpperCase() + str.slice(1)
14092 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected