Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

`String.to_atom/1` is safe to do at compile-time (#3813)

hq1bca617d0bfb9
diff --git a/lib/plausible/billing/feature.ex b/lib/plausible/billing/feature.ex
index 79ad4b3029..5d5c3468f2 100644
--- a/lib/plausible/billing/feature.ex
+++ b/lib/plausible/billing/feature.ex
@@ -95,7 +95,7 @@ defmodule Plausible.Billing.Feature do
|> Enum.map(fn mod ->
Module.split(mod)
|> List.last()
- |> String.to_existing_atom()
+ |> String.to_atom()
end)
end