Allow Hashtags searches prefixed with "#".

Change-Id: I9567e5292c84c68ef9b32159da9cc922e553aaa8
This commit is contained in:
Gustaf Lundh
2014-09-21 22:50:55 +02:00
parent 4353dbb859
commit a3e4722e4c
3 changed files with 9 additions and 4 deletions

View File

@@ -14,13 +14,14 @@
package com.google.gerrit.server.query.change;
import com.google.gerrit.server.change.HashtagsUtil;
import com.google.gerrit.server.index.ChangeField;
import com.google.gerrit.server.index.IndexPredicate;
import com.google.gwtorm.server.OrmException;
class HashtagPredicate extends IndexPredicate<ChangeData> {
HashtagPredicate(String hashtag) {
super(ChangeField.HASHTAG, hashtag.toLowerCase());
super(ChangeField.HASHTAG, HashtagsUtil.cleanupHashtag(hashtag));
}
@Override