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
98a6d30d
Commit
98a6d30d
authored
Oct 09, 2020
by
Alan Paruszewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve problem with rendering thumbsup emoji
parent
f9c4b9d8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
ee/lib/ee/banzai/pipeline/gfm_pipeline.rb
ee/lib/ee/banzai/pipeline/gfm_pipeline.rb
+7
-1
ee/spec/lib/banzai/filter/vulnerability_reference_filters_spec.rb
...lib/banzai/filter/vulnerability_reference_filters_spec.rb
+8
-0
No files found.
ee/lib/ee/banzai/pipeline/gfm_pipeline.rb
View file @
98a6d30d
...
...
@@ -18,10 +18,16 @@ module EE
[
::
Banzai
::
Filter
::
EpicReferenceFilter
,
::
Banzai
::
Filter
::
IterationReferenceFilter
,
::
Banzai
::
Filter
::
VulnerabilityReferenceFilter
,
*
super
]
end
def
filters
[
*
super
,
::
Banzai
::
Filter
::
VulnerabilityReferenceFilter
]
end
end
end
end
...
...
ee/spec/lib/banzai/filter/vulnerability_reference_filters_spec.rb
View file @
98a6d30d
...
...
@@ -19,6 +19,14 @@ RSpec.describe Banzai::Filter::VulnerabilityReferenceFilter do
reference_filter
(
reference
,
context
)
end
context
'+1 emoji'
do
let
(
:reference
)
{
":+1:"
}
it
'does not link to a reference'
do
expect
(
doc
(
reference
).
css
(
'a'
)).
to
be_empty
end
end
context
'internal reference'
do
let
(
:reference
)
{
"+
#{
vulnerability
.
id
}
"
}
...
...
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