10,731
edits
TheNightAvl (talk | contribs) mNo edit summary |
TheNightAvl (talk | contribs) 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 .. "/ " |