Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
f8d11e82
Commit
f8d11e82
authored
Oct 04, 2018
by
Jacopo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Trim whitespace when inviting a new user by email
parent
ea6e4f65
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
app/assets/javascripts/users_select.js
app/assets/javascripts/users_select.js
+1
-1
changelogs/unreleased/52194-trim-extra-whitespace-invite-member.yml
.../unreleased/52194-trim-extra-whitespace-invite-member.yml
+5
-0
No files found.
app/assets/javascripts/users_select.js
View file @
f8d11e82
...
@@ -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
...
...
changelogs/unreleased/52194-trim-extra-whitespace-invite-member.yml
0 → 100644
View file @
f8d11e82
---
title
:
Trim whitespace when inviting a new user by email
merge_request
:
22119
author
:
Jacopo Beschi @jacopo-beschi
type
:
fixed
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment