MediaWiki:Gadget-morebits.js: Difference between revisions

Content deleted Content added
Repo at bba08e9: zero-pad date in constructor
Repo at c0f5591: Better zero-pad (don't break on properly-padded dates)
Line 1,416:
args[0] = args[0].replace(/(\d\d:\d\d) (\d{1,2}) ([A-Z][a-z]+) (\d{4}) UTC$/, function(match, time, date, monthname, year) {
// zero-pad date
if (date.length <=== 101) {
date = '0' + date;
}