Skip to content

Commit 027878c

Browse files
committed
Fix 019-lambda: regex pattern for test event validation
Curly braces in bash regex cause match failure. Simplified pattern.
1 parent 11790c5 commit 027878c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tuts/019-lambda-gettingstarted/lambda-gettingstarted.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ echo ""
344344

345345
echo "$TEST_EVENT" > "${TEMP_DIR}/test-event.json"
346346

347-
if ! validate_input "$TEST_EVENT" '{"length": [0-9]+, "width": [0-9]+}'; then
347+
if ! validate_input "$TEST_EVENT" '"length": [0-9]+, "width": [0-9]+'; then
348348
echo "ERROR: Invalid test event format"
349349
exit 1
350350
fi

0 commit comments

Comments
 (0)