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
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
fa3a7ef0
Commit
fa3a7ef0
authored
Feb 08, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8740 from cinderblock/master
Be less restrictive on key comment extraction
parents
8c12c93e
daa1796c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
app/views/profiles/keys/new.html.haml
app/views/profiles/keys/new.html.haml
+3
-3
No files found.
app/views/profiles/keys/new.html.haml
View file @
fa3a7ef0
...
...
@@ -8,9 +8,9 @@
$
(
'
#key_key
'
).
on
(
'
focusout
'
,
function
(){
var
title
=
$
(
'
#key_title
'
),
val
=
$
(
'
#key_key
'
).
val
(),
key_mail
=
val
.
match
(
/
([
a-zA-Z0-9._-
]
+@
[
a-zA-Z0-9._-
]
+|
\.[
a-zA-Z0-9._-
]
+
)
/gi
);
comment
=
val
.
match
(
/^
\S
+
\S
+
(
.+
)
$/
);
if
(
key_mail
&&
key_mail
.
length
>
0
&&
title
.
val
()
==
''
){
$
(
'
#key_title
'
).
val
(
key_mail
);
if
(
comment
&&
comment
.
length
>
1
&&
title
.
val
()
==
''
){
$
(
'
#key_title
'
).
val
(
comment
[
1
]
);
}
});
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