fix for broken date.print function under opera

This commit is contained in:
Ralf Becker 2004-06-08 12:26:54 +00:00
parent 1ab7a385b7
commit f51badf1ef

View File

@ -1732,7 +1732,7 @@ Date.prototype.print = function (str) {
s["%%"] = "%"; // a literal '%' character
var re = /%./g;
if (!Calendar.is_ie5)
if (!Calendar.is_ie5 && !Calendar.is_opera)
return str.replace(re, function (par) { return s[par] || par; });
var a = str.match(re);