mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 20:57:22 +02:00
[PTRun][TimeZone]Fix error preventing search for standard time zones (#22256)
This commit is contained in:
@@ -858,7 +858,7 @@ namespace Microsoft.PowerToys.Run.Plugin.TimeZone.Helper
|
|||||||
/// <returns><see langword="true"/>if the query match, otherwise <see langword="false"/>.</returns>
|
/// <returns><see langword="true"/>if the query match, otherwise <see langword="false"/>.</returns>
|
||||||
internal static bool MatchStandardTimeNames(in TimeZoneProperties timeZoneProperties, Query query)
|
internal static bool MatchStandardTimeNames(in TimeZoneProperties timeZoneProperties, Query query)
|
||||||
{
|
{
|
||||||
var result = timeZoneProperties.TimeNamesDaylight.Any(x => x.Contains(query.Search, StringComparison.CurrentCultureIgnoreCase));
|
var result = timeZoneProperties.TimeNamesStandard.Any(x => x.Contains(query.Search, StringComparison.CurrentCultureIgnoreCase));
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user