Merge "Fix case-insensitive searching of hashtags" into stable-2.16
This commit is contained in:
@@ -20,7 +20,9 @@ import com.google.gwtorm.server.OrmException;
|
||||
|
||||
public class HashtagPredicate extends ChangeIndexPredicate {
|
||||
public HashtagPredicate(String hashtag) {
|
||||
super(ChangeField.HASHTAG, HashtagsUtil.cleanupHashtag(hashtag));
|
||||
// Use toLowerCase without locale to match behavior in ChangeField.
|
||||
// TODO(dborowitz): Change both.
|
||||
super(ChangeField.HASHTAG, HashtagsUtil.cleanupHashtag(hashtag).toLowerCase());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user