Permalink
Browse files

Add regex to strip the G13 postponement template if it's being accept…

…ed to mainspace
  • Loading branch information...
hasteur committed Jan 14, 2014
1 parent 9ac823d commit d41fc716bfacc1ae20bbb819d46d21cd3512f161
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/submissions.js
View
@@ -1105,6 +1105,8 @@ function afcHelper_cleanup(text,type) {
text = text.replace(/\<\!-- Do not include any categories - these don't need to be added until the article is accepted; They will just get removed by a bot! --\>/ig, "");
text = text.replace(/\<\!-{1,3}\s*Important, do not remove this line before (template|article) has been created.\s*-{1,3}\>/ig, "");
text = text.replace(/\[\[:Category:Articles created via the Article Wizard\]\]/gi, "[[Category:Articles created via the Article Wizard]]");
// Strip the AFC G13 postponement template
text = text.replace(/\{\{AfC postpone G13\|.\}\}\n\n/gi,"");

This comment has been minimized.

Show comment
Hide comment
@theopolisme

theopolisme Jan 15, 2014

Contributor

Better version on the way

@theopolisme

theopolisme Jan 15, 2014

Contributor

Better version on the way

} else {
// If we're not accepting, comment out categories
text = text.replace(/\[\[Category:/gi, "\[\[:Category:");

0 comments on commit d41fc71

Please sign in to comment.