From e315259b323479ef3ba0c7b55c1238f76b5fc88d Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Thu, 31 Aug 2006 01:49:46 +0000 Subject: [PATCH] fix problems formatting integer years --- chrome/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 index 320de13e96..5880d9ecfb 100644 --- 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);