Module:az-last vowel
- This module lacks a documentation subpage. Please create it.
- Useful links: subpage list • links • transclusions • testcases • sandbox
local export = {}
function export._main(str)
local last_vowel = nil
for i = mw.ustring.len(str), 1, -1 do
local char = mw.ustring.sub(str, i, i)
if mw.ustring.find("AIOUEƏİÖÜaıoueəiöü", char, 1, true) then
last_vowel = char
break
end
end
return last_vowel
end
function export.main(frame)
return export._main(frame:getParent().args[1])
end
return export