Module:rad-pronunciation: Difference between revisions

m
Fixed bug with just phonetic input in alternative pronunciation argument
mNo edit summary
m (Fixed bug with just phonetic input in alternative pronunciation argument)
Line 108: Line 108:
if not mw.ustring.find(temp_arg, "%/(.*)%/") then
if not mw.ustring.find(temp_arg, "%/(.*)%/") then
if mw.ustring.find(temp_arg, "%[(.*)%]") then
if mw.ustring.find(temp_arg, "%[(.*)%]") then
temp_arg = "/" .. mw.ustring.match(temp_arg, "(.*) %[") .. "/ " .. mw.ustring.match(temp_arg, "(%[.*%])")
if mw.ustring.find(temp_arg, "(.*) %[") then
temp_arg = "/" .. mw.ustring.match(temp_arg, "(.*) %[") .. "/ " .. mw.ustring.match(temp_arg, "(%[.*%])")
else
temp_arg = mw.ustring.match(temp_arg, "(%[.*%])")
end
else
else
temp_arg = "/" .. temp_arg .. "/ "
temp_arg = "/" .. temp_arg .. "/ "