Skip to content

Commit

Permalink
Downcase before filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
thbar committed Jan 20, 2025
1 parent 2716631 commit 661fe67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/irve/data-frame.exs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ defmodule Demo do
raise("the content is likely to be a zip file, not uncompressed CSV data")
end

if extension not in ["", ".csv"] do
if (extension |> String.downcase()) not in ["", ".csv"] do
raise("the content is likely not a CSV file (extension is #{extension})")
end

Expand Down

0 comments on commit 661fe67

Please sign in to comment.