diff options
| author | Leandre17 <leandre.godet@epitech.eu> | 2025-02-20 09:16:33 +0100 |
|---|---|---|
| committer | Leandre17 <leandre.godet@epitech.eu> | 2025-02-20 09:16:33 +0100 |
| commit | c55ff28149d66575e35f6d029821fd1cb0b903f8 (patch) | |
| tree | 2e73787ce931b04777d531240250fbb19fdd6928 /_extensions/leandre-filter/leandre.lua | |
| parent | 670ed5790e1c63a021f55b78807d3bf005ac1f9b (diff) | |
add comment for leandre fiter
Diffstat (limited to '_extensions/leandre-filter/leandre.lua')
| -rw-r--r-- | _extensions/leandre-filter/leandre.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/_extensions/leandre-filter/leandre.lua b/_extensions/leandre-filter/leandre.lua index 650e195..67ff113 100644 --- a/_extensions/leandre-filter/leandre.lua +++ b/_extensions/leandre-filter/leandre.lua @@ -1,4 +1,7 @@ +-- Function to replace variations of Leandre with Léandre. function Str(el) + -- Case-insensitive substitution using pattern matching + -- [Ll][Ee][Aa][Nn][Dd][Rr][Ee] matches Leandre in any capitalization el.text = el.text:gsub("[Ll][Ee][Aa][Nn][Dd][Rr][Ee]", "Léandre") return el end |
