diff --git a/lib/administrate/search.rb b/lib/administrate/search.rb index 85ba7ea69d..304a84a8e1 100644 --- a/lib/administrate/search.rb +++ b/lib/administrate/search.rb @@ -31,7 +31,7 @@ def to_s private def filter?(word) - valid_filters&.any? { |filter| word.match?(/^#{filter}:.*$/) } + valid_filters&.any? { |filter| word.match?(/^#{filter}:/) } end def parse_query(query)