Skip to content

Commit 0a62eea

Browse files
committed
backport c5f747a
1 parent 87c8c97 commit 0a62eea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/phoenix_live_view/tag_engine.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1379,7 +1379,7 @@ defmodule Phoenix.LiveView.TagEngine do
13791379
defp decompose_remote_component_tag!(tag_name, tag_meta, state) do
13801380
case String.split(tag_name, ".") |> Enum.reverse() do
13811381
[<<first, _::binary>> = fun_name | rest] when first in ?a..?z ->
1382-
size = Enum.sum(Enum.map(rest, &byte_size/1)) + length(rest) + 1
1382+
size = byte_size(tag_name) - byte_size(fun_name) + 1
13831383
aliases = rest |> Enum.reverse() |> Enum.map(&String.to_atom/1)
13841384
fun = String.to_atom(fun_name)
13851385
%{line: line, column: column} = tag_meta

0 commit comments

Comments
 (0)