Module:Constants: Difference between revisions

no edit summary
(_getModifierText: Attempt to workaround issue)
No edit summary
Line 833: Line 833:


local valSign = (valueUnsigned and '' or sign or '')
local valSign = (valueUnsigned and '' or sign or '')
resultText = string.gsub(resultText, '{(V[^}]*)}', function(rule) return valSign .. formatModValue(modMagnitude, rule) end)
resultText = string.gsub(resultText, '{(V[^}]*)}', function(rule) return valSign .. (formatModValue(modMagnitude, rule) or '') end)
resultText = string.gsub(resultText, '{S}', sign)
resultText = string.gsub(resultText, '{S}', sign)