We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 74ae029 + 7374f85 commit 06e1fcfCopy full SHA for 06e1fcf
src/functionHelper.js
@@ -33,7 +33,7 @@ function runPythonHandler(funOptions, options) {
33
} else {
34
// Search for the start of the JSON result
35
// https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-lambda-proxy-integrations.html#api-gateway-simple-proxy-for-lambda-output-format
36
- const match = /{\n\s+"isBase64Encoded"|{\n\s+"statusCode"|{\n\s+"headers"|{\n\s+"body"/.exec(str);
+ const match = /{[\r\n]\s+"isBase64Encoded"|{[\r\n]\s+"statusCode"|{[\r\n]\s+"headers"|{[\r\n]\s+"body"/.exec(str);
37
if (match && match.index > -1) {
38
// The JSON result was in this chunk so slice it out
39
hasDetectedJson = true;
0 commit comments