Compare commits

...

2 Commits

Author SHA1 Message Date
Nicolas Humbert 828b36da66 [drop_me] package version 2018-01-09 11:22:39 -08:00
Nicolas Humbert 465361a231 S3C-1140 FIX: Put object tagging rejecting unicode characters 2018-01-09 11:21:17 -08:00
3 changed files with 5 additions and 3 deletions

View File

@ -29,4 +29,7 @@ module.exports = {
// so we do the same.
maximumMetaHeadersSize: 2136,
emptyFileMd5: 'd41d8cd98f00b204e9800998ecf8427e',
// characters accepted for object tagging accepting unicode characters.
tagRegex: new RegExp
(/[^a-zA-Z0-9\u0032\u0043\u0045-\u0058\u0061\u0064-\uFFFF +-=._:/]/g),
};

View File

@ -2,8 +2,7 @@ const { parseString } = require('xml2js');
const errors = require('../errors');
const escapeForXml = require('./escapeForXml');
const tagRegex = new RegExp(/[^a-zA-Z0-9 +-=._:/]/g);
const { tagRegex } = require('../constants');
const errorInvalidArgument = errors.InvalidArgument
.customizeDescription('The header \'x-amz-tagging\' shall be ' +

View File

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