We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87c8c97 commit 0a62eeaCopy full SHA for 0a62eea
lib/phoenix_live_view/tag_engine.ex
@@ -1379,7 +1379,7 @@ defmodule Phoenix.LiveView.TagEngine do
1379
defp decompose_remote_component_tag!(tag_name, tag_meta, state) do
1380
case String.split(tag_name, ".") |> Enum.reverse() do
1381
[<<first, _::binary>> = fun_name | rest] when first in ?a..?z ->
1382
- size = Enum.sum(Enum.map(rest, &byte_size/1)) + length(rest) + 1
+ size = byte_size(tag_name) - byte_size(fun_name) + 1
1383
aliases = rest |> Enum.reverse() |> Enum.map(&String.to_atom/1)
1384
fun = String.to_atom(fun_name)
1385
%{line: line, column: column} = tag_meta
0 commit comments