Start searching from a singly character in domain field

pull/3463/head
Adrian Gruntkowski 3 years ago
parent b50c2808e7
commit 9c1f6fc7d3

@ -86,7 +86,7 @@ defmodule Plausible.Sites do
end
defp maybe_filter_by_domain(query, domain)
when byte_size(domain) >= 3 and byte_size(domain) <= 64 do
when byte_size(domain) >= 1 and byte_size(domain) <= 64 do
where(query, [s], ilike(s.domain, ^"%#{domain}%"))
end

Loading…
Cancel
Save