Compare commits

...

2 Commits

Author SHA1 Message Date
philipyoo 30dc866131 [drop] bump version 2018-06-01 16:38:52 -07:00
philipyoo fb59e667e4 test: fix lc date rule 2018-06-01 16:38:17 -07:00
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[0])) { if (!isoRegex.test(subExp.Date)) {
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[0]; expObj.date = subExp.Date;
} }
} }
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", "version": "8.0.0-1",
"description": "Common utilities for the S3 project components", "description": "Common utilities for the S3 project components",
"main": "index.js", "main": "index.js",
"repository": { "repository": {