fix problems formatting integer years
This commit is contained in:
parent
7a93034e32
commit
e315259b32
1 changed files with 1 additions and 1 deletions
|
@ -653,7 +653,7 @@ Scholar.Date = new function(){
|
||||||
return date;
|
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 dateRe = /^([0-9]{4})[\-\/]([0-9]{2})[\-\/]([0-9]{2})$/;
|
||||||
var m = dateRe.exec(string);
|
var m = dateRe.exec(string);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue