Skip to content

Instantly share code, notes, and snippets.

@levinotik
Created June 4, 2013 02:22
Show Gist options
  • Select an option

  • Save levinotik/5703140 to your computer and use it in GitHub Desktop.

Select an option

Save levinotik/5703140 to your computer and use it in GitHub Desktop.
if(isGmailAddress(email)) {
val name = email.substring(0, email.lastIndexOf("@"))
val strippedOfPeriods = stripChars(name, ".")
val email1: String = s"[email protected]"
Customer.findByEmail(email1).isEmpty
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment