Skip to content

Commit 31f9169

Browse files
committed
fix lookup in get_cache_entry()
1 parent d6612f8 commit 31f9169

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/mesytec-mvlc/util/data_filter.cc

+5
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,11 @@ std::optional<CacheEntry> get_cache_entry(const FilterWithCaches &filters, char
138138
{
139139
assert(filters.markers.size() == filters.caches.size());
140140

141+
if (!std::isalpha(marker))
142+
return std::nullopt;
143+
144+
marker = std::tolower(marker);
145+
141146
auto it = std::find(std::begin(filters.markers), std::end(filters.markers), marker);
142147

143148
if (it == std::end(filters.markers))

0 commit comments

Comments
 (0)