Skip to content

Commit 06e1fcf

Browse files
authored
Merge pull request #3 from euler2718/python3_regex
python3 dict to response regex fix
2 parents 74ae029 + 7374f85 commit 06e1fcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/functionHelper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function runPythonHandler(funOptions, options) {
3333
} else {
3434
// Search for the start of the JSON result
3535
// 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);
36+
const match = /{[\r\n]\s+"isBase64Encoded"|{[\r\n]\s+"statusCode"|{[\r\n]\s+"headers"|{[\r\n]\s+"body"/.exec(str);
3737
if (match && match.index > -1) {
3838
// The JSON result was in this chunk so slice it out
3939
hasDetectedJson = true;

0 commit comments

Comments
 (0)