Browse files

xfd: fix brokenness when nominating the first AFD of a day

The regex depends on there being newlines after the code comment, but at the start of each day, there are none, so Twinkle fails.
This change makes it (hopefully) work.
  • Loading branch information...
atlight committed Dec 10, 2011
1 parent b604610 commit c0ab7629006180f700d41522ad57976d874bf63b
Showing with 1 addition and 1 deletion.
  1. +1 −1 modules/twinklexfd.js
@@ -566,7 +566,7 @@ Twinkle.xfd.callbacks = {
Twinkle.xfd.currentRationale = null; // any errors from now on do not need to print the rationale, as it is safely saved on-wiki
todaysList: function(pageobj) {
var old_text = pageobj.getPageText();
var old_text = pageobj.getPageText() + "\n"; // MW strips trailing blanks, but we like them, so we add a fake one
var params = pageobj.getCallbackParameters();
var statelem = pageobj.getStatusElement();

0 comments on commit c0ab762

Please sign in to comment.