diff --git a/lib/phoenix_integration/form/tag.ex b/lib/phoenix_integration/form/tag.ex index a2dc008..bff34ec 100644 --- a/lib/phoenix_integration/form/tag.ex +++ b/lib/phoenix_integration/form/tag.ex @@ -171,7 +171,7 @@ defmodule PhoenixIntegration.Form.Tag do end end - defp separate_name_pieces(name), do: Regex.scan(~r/\w+/, name) + defp separate_name_pieces(name), do: Regex.scan(~r/[^\[\]]+/, name) # Floki allows tags to come in two forms defp tag_name([floki_tag]), do: tag_name(floki_tag)