diff --git a/src/email.ts b/src/email.ts index 6642a515411..764399c05ec 100644 --- a/src/email.ts +++ b/src/email.ts @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -const EMAIL_ADDRESS_REGEX = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i; +const EMAIL_ADDRESS_REGEX = /^\s*[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}\s*$/i; export function looksValid(email: string): boolean { return EMAIL_ADDRESS_REGEX.test(email);