Skip to content

Commit

Permalink
chore: change parsing method
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhart1o1 committed Jan 18, 2024
1 parent e2671bb commit bf54af8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/e2e/register-email.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit bf54af8

Please sign in to comment.