mirror of
https://github.com/redmine/redmine.git
synced 2025-11-12 00:06:01 +01:00
Support multiple multi-word phrases in the search engine (#38446).
Patch by Go MAEDA (@maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@22886 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -30,4 +30,9 @@ class Redmine::Search::Tokenize < ActiveSupport::TestCase
|
||||
value = "全角\u3000スペース"
|
||||
assert_equal %w[全角 スペース], Redmine::Search::Tokenizer.new(value).tokens
|
||||
end
|
||||
|
||||
def test_tokenize_should_support_multiple_phrases
|
||||
value = '"phrase one" "phrase two"'
|
||||
assert_equal ["phrase one", "phrase two"], Redmine::Search::Tokenizer.new(value).tokens
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user