diff --git a/src/modules/submissions.js b/src/modules/submissions.js index 7095dde6..efd13814 100644 --- a/src/modules/submissions.js +++ b/src/modules/submissions.js @@ -533,7 +533,7 @@ if ( isAccept ) { // Remove {{Draft categories}} - text = text.replace( /\{\{Draft categories\s*\|((?:\s*\[\[:?Category:[ \S]+?\]\]\s*)*)\s*\}\}/gi, '$1' ); + text = text.replace( /\{\{(?:Draft categories|Draftcat)\s*\|((?:\s*\[\[:?Category:[ \S]+?\]\]\s*)*)\s*\}\}/gi, '$1' ); // Remove {{Draft article}} (and {{Draft}}). // Not removed if the |text= parameter is present, which could contain