Skip to content

Commit 82dfc6a

Browse files
committed
Make searching Can I Use case insensitive
1 parent 53986c3 commit 82dfc6a

File tree

1 file changed

+2
-0
lines changed
  • apps/components_guide/lib/components_guide/research

1 file changed

+2
-0
lines changed

apps/components_guide/lib/components_guide/research/spec.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ defmodule ComponentsGuide.Research.Spec do
6161
end
6262

6363
defp process_search_for(:caniuse, query, {:ok, data}) when is_binary(query) do
64+
query = query |> String.trim() |> String.downcase()
65+
6466
table = data["data"]
6567

6668
if false do

0 commit comments

Comments
 (0)