Module:Sandbox/Aidan9382/DiscussionOverview: Difference between revisions

Content deleted Content added
Handle lowercase start in sig regex
more regex capitalisation stuff (so many)
Line 59:
local timestampRegex = "((%d%d:%d%d, %d%d? %w+,? %d%d%d%d) %(UTC%))"
local userRegex = "(%[%[:?[Uu]ser:([^#|%]]+))"
local userTalkRegex = "(%[%[:?[Uu]ser[ _]talk[Tt]alk:([^#|%]]+))"
local userContribRegex = "(%[%[:?[Ss]pecial:Contributions[Cc]ontributions/([^#|%]]+))"
for line in string.gmatch(text,"[^\n]+") do
--Split by line and check all content on said line. This assumes all signatures never use newlines, which they should not be doing anyways.