Resolve #3270
@ -56,4 +56,8 @@ module Extractor
tags.each { |tag| yield tag[:hashtag], tag[:indices].first, tag[:indices].last } if block_given?
tags
end
def extract_cashtags_with_indices(_text)
[] # always returns empty array
@ -46,6 +46,14 @@ RSpec.describe Formatter do
context 'with cashtag' do
let(:local_text) { 'Hello world $AAPL' }
it 'skip cashtag' do
expect(subject).to match '<p>Hello world $AAPL</p>'
context 'with reblog' do
let(:local_status) { Fabricate(:status, account: account, reblog: Fabricate(:status, text: 'Hello world', account: account)) }