Editing Module:Abilities/utilsGive feedback
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 1: | Line 1: | ||
local p = {} | local p = {} | ||
local lang = require"Module:Lang" | local lang = require"Module:Lang" | ||
local dictionary_module = require("Module:Dictionary") | local dictionary_module = require("Module:Dictionary") | ||
| Line 60: | Line 59: | ||
-- If string ends with 'm', then set the postfix to 'm' and remove it | -- If string ends with 'm', then set the postfix to 'm' and remove it | ||
if | if utils.string_endswith(tostring(value), 'm') then | ||
value = tonumber(value:sub(1, -2)) | value = tonumber(value:sub(1, -2)) | ||
postfix = 'm' | postfix = 'm' | ||