diff --git a/src/Components/CreateImageWizard/steps/Timezone/components/TimezoneDropDown.tsx b/src/Components/CreateImageWizard/steps/Timezone/components/TimezoneDropDown.tsx index e712cfd3..b0ef2c48 100644 --- a/src/Components/CreateImageWizard/steps/Timezone/components/TimezoneDropDown.tsx +++ b/src/Components/CreateImageWizard/steps/Timezone/components/TimezoneDropDown.tsx @@ -40,9 +40,16 @@ const TimezoneDropDown = () => { let filteredTimezones = timezones; if (filterValue) { - filteredTimezones = timezones.filter((timezone: string) => - String(timezone).toLowerCase().includes(filterValue.toLowerCase()) - ); + const normalizedFilter = filterValue + .toLowerCase() + .replace(/[_/]/g, ' ') + .trim(); + + filteredTimezones = timezones.filter((timezone: string) => { + const normalizedTimezone = timezone.toLowerCase().replace(/[_/]/g, ' '); + return normalizedTimezone.includes(normalizedFilter); + }); + if (!isOpen) { setIsOpen(true); }