Commit 98a6d30d authored by Alan Paruszewski's avatar Alan Paruszewski

Resolve problem with rendering thumbsup emoji

parent f9c4b9d8
......@@ -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
......
......@@ -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}" }
......
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