Modul:Citation/utilities: Unterschied zwischen den Versionen

K
keine Bearbeitungszusammenfassung
KKeine Bearbeitungszusammenfassung
KKeine Bearbeitungszusammenfassung
Zeile 116: Zeile 116:
end
end
return s:gsub( '%s%s+', ' ' ) -- multiple spaces
return s:gsub( '%s%s+', ' ' ) -- multiple spaces
end
-- remove illegal chars from page paramters
function cu.cleanupPageNumbers( pages )
if not cu.isSet( pages ) then
return ''
end
pages = ( '' .. pages ):gsub( '–', '-' ); -- replace endashes with hyphens
return pages:gsub( '&[%w+d%];', '-' ); -- replace html entities with hyphens
end
end


return cu
return cu
Anonymer Benutzer