Anonymous

Module:Shared: Difference between revisions

From Melvor Idle
Added a pagename fix to handle apostrophes
(Added shortened timestring version)
(Added a pagename fix to handle apostrophes)
Line 347: Line 347:
   end
   end
   return table.concat(pieces, ', ')
   return table.concat(pieces, ', ')
end
function p.fixPagename(pageName)
  local result = pageName
  result = string.gsub(result, "%%27", "'")
  result = string.gsub(result, "'", "'")
  return result
end
end
   
   
return p
return p