User:Bobblewik/monobook.js/dates.js: Difference between revisions

Content deleted Content added
Bobblewik (talk | contribs)
mNo edit summary
Bobblewik (talk | contribs)
mNo edit summary
Line 1:
function formatdates() {
var s = \[(\d{4});
if(s) {
var r = "$1";
if(!r && r != '') return;
var txt = document.editform.wpTextbox1;
txt.value = txt.value.replace(new RegExp(s\[(\d{4}), "g"), r);
}