Permalink
Browse files

Add another sandbox header to remove

  • Loading branch information...
theopolisme committed Sep 17, 2013
1 parent c930a1f commit 5f7d95b3aa02f26de1bf9807fa114165e3d9eb8e
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/submissions.js
View
@@ -1191,7 +1191,7 @@ function afcHelper_cleanup(text,type) {
text = text.replace(/== Request review at \[\[WP:AFC\]\] ==\n/ig, "");
text = text.replace(/(?:<\s*references\s*>([\S\s]*)<\/references>|<\s*references\s*\/\s*>)/gi, "\n{{reflist|refs=$1}}");
text = text.replace("{{reflist|refs=}}", "{{reflist}}"); // hack to make sure we don't leave an unneeded |refs=
text = text.replace(/\{\{(userspacedraft|userspace draft|user sandbox)(?:\{\{[^{}]*\}\}|[^}{])*\}\}/ig, "");
text = text.replace(/\{\{(userspacedraft|userspace draft|user sandbox|Please leave this line alone \(sandbox heading\))(?:\{\{[^{}]*\}\}|[^}{])*\}\}/ig, "");
text = text.replace(/<!--\s*-->/ig, ""); // Remove empty HTML comments
text = text.replace(/^----+$/igm, ""); // Removes horizontal rules
text = text.replace(/\[\[:Category:Articles created via the Article Wizard\]\]/gi, "[[Category:Articles created via the Article Wizard]]");

0 comments on commit 5f7d95b

Please sign in to comment.