User:Writ Keeper/Scripts/peerReviewCloser.js: Difference between revisions

Content deleted Content added
typo
adjust regex to make it not case sensitive
Line 19:
api.edit(mw.config.get("wgPageName"), function(revision)
{
var regexResult = revision.content.match(/\{\{ *Peer[pP]eer review page *\| *topic *= *\w+ *\}\}/);
if(regexResult != null)
{
Line 37:
api.edit(talkPageName, function(revision)
{
var regexResult = revision.content.match(/\{\{ *Peer[pP]eer review *(\| *archive *= *\d+) *\}\}/);
if(regexResult != null && typeof regexResult[1] != "undefined")
{