fix trailing whitespace breaking jshint

This commit is contained in:
William Becker 2013-08-26 18:10:32 +01:00 committed by Brian Carlson
parent b7f8429ff7
commit 3c6b106b86

View File

@ -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);
}