From da17726fc5bcc893cb316b841db6b0134becfa4d Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Mon, 30 Nov 2020 23:46:51 -0500 Subject: [PATCH] format --- lib/philomena/users/user.ex | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/philomena/users/user.ex b/lib/philomena/users/user.ex index cfd40b27..719d45b6 100644 --- a/lib/philomena/users/user.ex +++ b/lib/philomena/users/user.ex @@ -161,7 +161,9 @@ defmodule Philomena.Users.User do defp validate_email(changeset) do changeset |> validate_required([:email]) - |> validate_format(:email, ~r/^[^\s]+@[^\s]+\.[^\s]+$/, message: "must be valid (e.g., user@example.com)") + |> validate_format(:email, ~r/^[^\s]+@[^\s]+\.[^\s]+$/, + message: "must be valid (e.g., user@example.com)" + ) |> validate_length(:email, max: 160) |> unsafe_validate_unique(:email, Philomena.Repo) end