Module:Navbar: Difference between revisions

5 bytes removed ,  11 years ago
match ought to be marginally faster
m>Dragons flight
(If the documentation is accurate, this will use the namespace part of pageName first and fallback to Template if one isn't present, which is what we want.)
m>Dragons flight
(match ought to be marginally faster)
Line 4: Line 4:


function trim(s)
function trim(s)
     return (mw.ustring.gsub(s, "^%s*(.-)%s*$", "%1"))
     return mw.ustring.match( s, "^%s*(.-)%s*$" )
end
end


Anonymous user