Skip to content
This repository has been archived by the owner on Feb 4, 2021. It is now read-only.

Commit

Permalink
Add another sandbox header to remove
Browse files Browse the repository at this point in the history
  • Loading branch information
theopolisme committed Sep 17, 2013
1 parent c930a1f commit 5f7d95b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/submissions.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -1191,7 +1191,7 @@ function afcHelper_cleanup(text,type) {
text = text.replace(/== Request review at \[\[WP:AFC\]\] ==\n/ig, ""); 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(/(?:<\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("{{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(/<!--\s*-->/ig, ""); // Remove empty HTML comments
text = text.replace(/^----+$/igm, ""); // Removes horizontal rules 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]]"); text = text.replace(/\[\[:Category:Articles created via the Article Wizard\]\]/gi, "[[Category:Articles created via the Article Wizard]]");
Expand Down

0 comments on commit 5f7d95b

Please sign in to comment.