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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
gitlab-ce
Commits
50f707e2
Commit
50f707e2
authored
Apr 29, 2015
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Autolink SCHEME_PATTERN
parent
9ec8a5f7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
lib/gitlab/markdown/autolink_filter.rb
lib/gitlab/markdown/autolink_filter.rb
+3
-1
No files found.
lib/gitlab/markdown/autolink_filter.rb
View file @
50f707e2
...
@@ -25,7 +25,9 @@ module Gitlab
...
@@ -25,7 +25,9 @@ module Gitlab
# The negative lookbehind ensures that users can paste a URL followed by a
# The negative lookbehind ensures that users can paste a URL followed by a
# period or comma for punctuation without those characters being included
# period or comma for punctuation without those characters being included
# in the generated link.
# in the generated link.
SCHEME_PATTERN
=
%r{([a-z][a-z0-9_
\+\.\-
]+:
\/\/
[^
\s
]+)(?<!,|
\.
)}
#
# Rubular: http://rubular.com/r/cxjPyZc7Sb
SCHEME_PATTERN
=
%r{([a-z][a-z0-9
\+\.
-]+://
\S
+)(?<!,|
\.
)}
# Text matching SCHEME_PATTERN inside these elements will not be linked
# Text matching SCHEME_PATTERN inside these elements will not be linked
IGNORE_PARENTS
=
%w(a code kbd pre script style)
.
to_set
IGNORE_PARENTS
=
%w(a code kbd pre script style)
.
to_set
...
...
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