Skip to content

Commit 0f45862

Browse files
committed
Add support to liveview pattens
1 parent 73afc72 commit 0f45862

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lua/elixir_dev/module.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,12 @@ function M.module_name_by_path(path)
7575
return string.upper(a) .. b
7676
end)
7777
:gsub("_", "")
78+
:gsub("Ui", "UI")
7879
:gsub("Api", "API")
7980
:gsub("Json", "JSON")
80-
:gsub(".Controllers", "")
81-
:gsub(".Views", "")
81+
:gsub(".Controllers.", ".")
82+
:gsub(".Views.", ".")
83+
:gsub(".Live.", ".")
8284
:gsub("Lib.", "")
8385
:gsub("Test.", "")
8486

0 commit comments

Comments
 (0)