Open berkerpeksag opened 7 years ago
The following snippet is in serverless-architectures-aws/chapter-3/Listing 3.1 - 3.4 - Transcode Video Lambda/index.js:
serverless-architectures-aws/chapter-3/Listing 3.1 - 3.4 - Transcode Video Lambda/index.js
//the input file may have spaces so replace them with '+' var sourceKey = decodeURIComponent(key.replace(/\+/g, ' '));
However, the code does the opposite of what the comment says. I think the correct version should read as:
var sourceKey = decodeURIComponent(key.replace(/\W/g, '+'));
The following snippet is in
serverless-architectures-aws/chapter-3/Listing 3.1 - 3.4 - Transcode Video Lambda/index.js
:However, the code does the opposite of what the comment says. I think the correct version should read as: