Skip to content

Commit

Permalink
tag: fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharthvp committed Mar 25, 2019
1 parent 11151cf commit b832df8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions modules/friendlytag.js
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,10 @@ Twinkle.tag.updateSortOrder = function(e) {
$workarea.find("div").filter(":has(span.quickformDescription)").css({ 'margin-top': '0.4em' });

Morebits.quickForm.getElements(e.target.form, "articleTags").forEach(generateLinks);
Morebits.quickForm.getElements(e.target.form, "alreadyPresentArticleTags").forEach(generateLinks);
var alreadyPresentTags = Morebits.quickForm.getElements(e.target.form, "alreadyPresentArticleTags");
if(alreadyPresentTags) {
alreadyPresentTags.forEach(generateLinks);
}
};

/**
Expand Down Expand Up @@ -1407,7 +1410,7 @@ Twinkle.tag.callbacks = {
}
});
}

var miTest = /\{\{(multiple ?issues|article ?issues|mi)(?!\s*\|\s*section\s*=)[^}]+\{/im.exec(pageText);

if( miTest && groupableTags.length > 0 ) {
Expand Down

0 comments on commit b832df8

Please sign in to comment.