Content deleted Content added
Dreamy Jazz (talk | contribs) |
Handle section names containing URL-escaped characters and characters special to Lua patterns |
||
Line 477:
-- Parse a ==Section== from a page
local function getsection(text, section, mainonly)
local
local level, content = mw.ustring.match(text .. "\n", "\n(==+)%s*" .. escapedSection .. "%s*==.-\n(.*)")
if not content then return nil end -- no such section
local nextsection
|