Module:Convert to eastern arabic numerals: Difference between revisions

Content deleted Content added
No edit summary
Tag: Reverted
Restored revision 1062361326 by Snood1205 (talk): The better form of gsub is not currently working
Line 17:
function p.convert(frame)
local num_str = tostring(frame.args[1])
returnfor num_str:gsub('[0-9.]'western, eastern in pairs(conversion_table) do
num_str = string.gsub(num_str, western, eastern)
end
return num_str
end