Module:Sandbox/Aidan9382/DiscussionOverview: Difference between revisions

Content deleted Content added
xpcall for better traceback cause it keeps failing due to some PCRE magic
 
(One intermediate revision 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
mw.log("Found user on reg",reg,"name is",identifier)
usersOnThisLine[string.find(targetText,reg)] = identifier
end
Line 185 ⟶ 184:
end
end
mw.logObject(orderedComments)
local firstComment,lastComment