From bf54af8feaedcaf3e49eda7d7d7960c129e1dff8 Mon Sep 17 00:00:00 2001 From: Siddharth Tiwari Date: Thu, 18 Jan 2024 13:24:59 +0530 Subject: [PATCH] chore: change parsing method --- tests/e2e/register-email.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/e2e/register-email.bash b/tests/e2e/register-email.bash index fb7070d..361d501 100755 --- a/tests/e2e/register-email.bash +++ b/tests/e2e/register-email.bash @@ -10,7 +10,7 @@ get_email_code() { DB_NAME="default" local EMAIL=$1 local email_code_response=$(docker exec -i "$DB_CONTAINER" psql -U "$DB_USER" -d "$DB_NAME" -t -c "SELECT body FROM courier_messages WHERE recipient='$EMAIL' ORDER BY created_at DESC LIMIT 1;") - local email_code=$(echo "$email_code_response" | grep -Eo '\d{6}') + local email_code=$(echo "$email_code_response" | grep -Eo '[0-9]{6}') echo $email_code }