Content deleted Content added
Decode html characters in text for signatures |
temporary user stuff (from mw:Trust and Safety Product/Temporary Accounts#Updates) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 23:
local final = ""
for _,user in next,users do
if string.match(user,"^%d+%.%d+%.%d+%.%d+$") or string.match(user,"^%x+:[%x:]+$") or string.match(user, "^~%d%d%d%d%-%d%d%d%d%d%-%d%d%d$") then --Lazy but mostly working basic IPv6 regex
final = final .. "[[Special:Contributions/"..user.."|"..user.."]], "
else
Line 77:
identifier = string.gsub(identifier,"_"," ")
if not string.find(identifier,"/") then --Avoid subpage nonsense
usersOnThisLine[string.find(targetText,reg)] = identifier
end
Line 131 ⟶ 130:
assert(type(page)=="string","Invalid or no page provided")
local
return Transcluder.get(page)
end, function(err)
error(debug.traceback())
end)
local sections = getSectionData(text)
Line 182 ⟶ 184:
end
end
local firstComment,lastComment
|