Content deleted Content added
Sophivorus (talk | contribs) Remove dependency from Module:Redirect for easier porting to new wikis |
Sophivorus (talk | contribs) No edit summary |
||
Line 64:
local content = titleObject:getContent()
if not content then return nil end
local target = string.match( content, "^%s*#[Rr][Ee][Dd][Ii][Rr][Ee][Cc][Tt]%s*:?%s*%[%[([^%[%]|]-)%]%]" )
or string.match( content, "^%s*#[Rr][Ee][Dd][Ii][Rr][Ee][Cc][Tt]%s*:?%s*%[%[([^%[%]|]-)|[^%[%]]-%]%]" )▼
▲ "^%s*#[Rr][Ee][Dd][Ii][Rr][Ee][Cc][Tt]%s*:?%s*%[%[([^%[%]|]-)|[^%[%]]-%]%]"
return target
end
|