1
0
Fork 0
forked from gitea/nas

Add: #452 全文検索で、ダブルクオートがない場合でも単語検索を標準とするオプション (#478)

This commit is contained in:
KMY(雪あすか) 2024-01-18 08:39:33 +09:00 committed by GitHub
parent 77843c0bdc
commit d5940f00d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 36 additions and 7 deletions

View file

@ -289,5 +289,15 @@ describe StatusesSearchService do
it_behaves_like 'does not hit status', 'when search with following', 'in:following りんご'
end
end
context 'when reverse_search_quote is enabled' do
before do
alice.user.update!(settings: { reverse_search_quote: true })
end
it_behaves_like 'does not hit status', 'when search with letter in word', 'ご'
it_behaves_like 'hit status', 'when double quote search with letter in word', '"ご"'
it_behaves_like 'hit status', 'when search with word', 'りんご'
end
end
end