The following function...
...that I've got from here seems to do exactly what I need, BUT turns out it returns the extension without the dot (e.g. just "lua" insteaf of ".lua") and I'd want to include it, but I'm so bad when it comes to string patters that even being so close and counting with an explanation in the page (plus this good doc: Understanding Lua Patterns) it seems I simply can't make it work as I'd want... So, could someone please let me a hand on this? Even if it's only a clue... If I don't include any try it's, sincerely, due to I'm practically making random changes to it without (of course 🙄) any success.