"मोड्युल:Redirect" को बिचमी भिन्नता
handle redirects that pipe their link
imported>SiBr4 (Moved from sandbox: making the isRedirect function available from other modules, like the main function is) |
imported>Jackmcbarn (handle redirects that pipe their link) |
||
return string.match(
text,
"^%s*#[Rr][Ee][Dd][Ii][Rr][Ee][Cc][Tt]%s*:?%s*%[%[([^%[%]|]-)%]%]"
) or string.match(
text,
"^%s*#[Rr][Ee][Dd][Ii][Rr][Ee][Cc][Tt]%s*:?%s*%[%[([^%[%]|]-)|[^%[%]]-%]%]"
)
end
|