Skip to content

Commit

Permalink
Merge pull request #53 from arnodirlam/form/loose-input-name-matching
Browse files Browse the repository at this point in the history
Form Tag: Input name pieces match all non-bracket characters
  • Loading branch information
boydm authored Jun 15, 2021
2 parents 5b9d41d + e2977d8 commit ab6fdc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/phoenix_integration/form/tag.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ab6fdc9

Please sign in to comment.