Compare commits

..

No commits in common. "30dc866131959750ebb0ccd2f6905e38be1d8885" and "063361377cbc3050fcd6eb94b18be8e526ab17ab" have entirely different histories.

2 changed files with 3 additions and 3 deletions

View File

@ -547,11 +547,11 @@ class LifecycleConfiguration {
const isoRegex = new RegExp('^(-?(?:[1-9][0-9]*)?[0-9]{4})-' + const isoRegex = new RegExp('^(-?(?:[1-9][0-9]*)?[0-9]{4})-' +
'(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12][0-9])T(2[0-3]|[01][0-9])' + '(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12][0-9])T(2[0-3]|[01][0-9])' +
':([0-5][0-9]):([0-5][0-9])(.[0-9]+)?(Z)?$'); ':([0-5][0-9]):([0-5][0-9])(.[0-9]+)?(Z)?$');
if (!isoRegex.test(subExp.Date)) { if (!isoRegex.test(subExp.Date[0])) {
expObj.error = errors.InvalidArgument.customizeDescription( expObj.error = errors.InvalidArgument.customizeDescription(
'Date must be in ISO 8601 format'); 'Date must be in ISO 8601 format');
} else { } else {
expObj.date = subExp.Date; expObj.date = subExp.Date[0];
} }
} }
if (subExp.Days) { if (subExp.Days) {

View File

@ -3,7 +3,7 @@
"engines": { "engines": {
"node": ">=6.9.5" "node": ">=6.9.5"
}, },
"version": "8.0.0-1", "version": "8.0.0",
"description": "Common utilities for the S3 project components", "description": "Common utilities for the S3 project components",
"main": "index.js", "main": "index.js",
"repository": { "repository": {