diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-09 02:05:37 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-09 02:05:37 +0000 |
commit | 171c62f02db8ccb567894d8c9bd33f471e23c9c8 (patch) | |
tree | d68b3811701158f1917d6a4c68e3ae5fa284046a /lib | |
parent | 91c56e2cbddc9f30f85008e77d97d492a2c19570 (diff) | |
download | redmine-171c62f02db8ccb567894d8c9bd33f471e23c9c8.tar.gz redmine-171c62f02db8ccb567894d8c9bd33f471e23c9c8.zip |
code cleanup: rubocop: fix Style/AsciiComments in lib/redmine/search.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18631 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/search.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/search.rb b/lib/redmine/search.rb index 0f80c8908..17968e959 100644 --- a/lib/redmine/search.rb +++ b/lib/redmine/search.rb @@ -62,7 +62,7 @@ module Redmine # eg. hello "bye bye" => ["hello", "bye bye"] @tokens = @question.scan(%r{((\s|^)"[^"]+"(\s|$)|\S+)}).collect {|m| m.first.gsub(%r{(^\s*"\s*|\s*"\s*$)}, '')} # tokens must be at least 2 characters long - # but for Chinese characters (汉字/漢字), tokens can be one character + # but for Chinese characters (Chinese HANZI/Japanese KANJI), tokens can be one character @tokens = @tokens.uniq.select {|w| w.length > 1 || w =~ /\p{Han}/ } # no more than 5 tokens to search for @tokens.slice! 5..-1 |