Open SpencerDevv opened 7 months ago
I needed the ability to do {dir_name}.{file_name_no_ext}, and I saw that you didn't support it, so I decided to implement it.
{dir_name}.{file_name_no_ext}
I decided to do fileName.split('.').slice(0, -1).join('.'), because I also needed the ability to see the first ending.
fileName.split('.').slice(0, -1).join('.')
Example: FileName.lua -> Filename. FileName.server.lua -> Filename.server.
FileName.lua
Filename
FileName.server.lua
Filename.server
I needed the ability to do
{dir_name}.{file_name_no_ext}
, and I saw that you didn't support it, so I decided to implement it.I decided to do
fileName.split('.').slice(0, -1).join('.')
, because I also needed the ability to see the first ending.Example:
FileName.lua
->Filename
.FileName.server.lua
->Filename.server
.