fix trailing whitespace breaking jshint
This commit is contained in:
parent
b7f8429ff7
commit
3c6b106b86
@ -17,7 +17,7 @@ var parseDate = function(isoDate) {
|
||||
return new Date(isoDate);
|
||||
}
|
||||
}
|
||||
var isBC = /BC$/.test(isoDate);
|
||||
var isBC = /BC$/.test(isoDate);
|
||||
var _year = parseInt(match[1], 10);
|
||||
var isFirstCentury = (_year > 0) && (_year < 100);
|
||||
var year = (isBC ? "-" : "") + match[1];
|
||||
@ -65,7 +65,7 @@ var parseDate = function(isoDate) {
|
||||
else {
|
||||
date = new Date(year, month, day, hour, min, seconds, mili);
|
||||
}
|
||||
|
||||
|
||||
if (isFirstCentury) {
|
||||
date.setUTCFullYear(year);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user