www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit e315259b323479ef3ba0c7b55c1238f76b5fc88d
parent 7a93034e3271b5b7691ebedb76a8d33c2281fbd9
Author: Simon Kornblith <simon@simonster.com>
Date:   Thu, 31 Aug 2006 01:49:46 +0000

fix problems formatting integer years


Diffstat:
Mchrome/chromeFiles/content/scholar/xpcom/scholar.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/chrome/chromeFiles/content/scholar/xpcom/scholar.js b/chrome/chromeFiles/content/scholar/xpcom/scholar.js @@ -653,7 +653,7 @@ Scholar.Date = new function(){ return date; } - string = string.replace(/^\s+/, "").replace(/\s+$/, "").replace(/\s+/, " "); + string = string.toString().replace(/^\s+/, "").replace(/\s+$/, "").replace(/\s+/, " "); var dateRe = /^([0-9]{4})[\-\/]([0-9]{2})[\-\/]([0-9]{2})$/; var m = dateRe.exec(string);