Commit f8d11e82 authored by Jacopo's avatar Jacopo

Trim whitespace when inviting a new user by email

parent ea6e4f65
...@@ -592,7 +592,7 @@ function UsersSelect(currentUser, els, options = {}) { ...@@ -592,7 +592,7 @@ function UsersSelect(currentUser, els, options = {}) {
if (showEmailUser && data.results.length === 0 && query.term.match(/^[^@]+@[^@]+$/)) { if (showEmailUser && data.results.length === 0 && query.term.match(/^[^@]+@[^@]+$/)) {
var trimmed = query.term.trim(); var trimmed = query.term.trim();
emailUser = { emailUser = {
name: "Invite \"" + query.term + "\" by email", name: "Invite \"" + trimmed + "\" by email",
username: trimmed, username: trimmed,
id: trimmed, id: trimmed,
invite: true invite: true
......
---
title: Trim whitespace when inviting a new user by email
merge_request: 22119
author: Jacopo Beschi @jacopo-beschi
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment