From 89212ae6802c2e7d59a5e75098fa471b93bcf912 Mon Sep 17 00:00:00 2001 From: Aman Agrawal Date: Thu, 12 Jun 2025 10:43:43 +0530 Subject: [PATCH] people: Account for emails being split by " ,". emails could be split by " ," and ",". So, trimming extra space is important. --- web/src/people.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/people.ts b/web/src/people.ts index 465718624f..6045ae8762 100644 --- a/web/src/people.ts +++ b/web/src/people.ts @@ -421,7 +421,7 @@ export function get_user_type(user_id: number): string | undefined { } export function emails_strings_to_user_ids_string(emails_string: string): string | undefined { - const emails = emails_string.split(","); + const emails = emails_string.split(",").map((email) => email.trim()); return email_list_to_user_ids_string(emails); }