Permalink
Browse files

Fix inconsistent formatting with /recent that was causing mis-indexing

  • Loading branch information...
1 parent 9a1f5fa commit ec50cc1403b62c2b400149ecdafacd3e9ff5e6ef @theopolisme theopolisme committed Aug 28, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/ffu.js
View
@@ -320,7 +320,7 @@ function afcHelper_ffu_performActions() {
// update [[Wikipedia:Files for upload/recent]]
if (sub_m.recent == true) {
recentpagetext = afcHelper_getPageText('Wikipedia:Files_for_upload/recent', true)
- var newentry = "\|File:" + sub_m.to + " | " + (typeof sub_m.recenttext !== "undefined" ? sub_m.recenttext : "") + "\n";
+ var newentry = "\| File:" + sub_m.to + " | " + (typeof sub_m.recenttext !== "undefined" ? sub_m.recenttext : "") + "\n";
var lastentry = recentpagetext.toLowerCase().lastIndexOf("| file:");
var firstentry = recentpagetext.toLowerCase().indexOf("| file:");
recentpagetext = recentpagetext.substring(0, lastentry);

0 comments on commit ec50cc1

Please sign in to comment.