search/word_search: fix casing of SearchMode variants

This commit is contained in:
2026-02-28 18:27:13 +09:00
parent 7731a4a599
commit 30913ea6a1
4 changed files with 41 additions and 23 deletions

View File

@@ -107,7 +107,7 @@ class WordSearchResult {
/// Infers which part(s) of this word search result matched the search keyword, and populates [matchSpans] accordingly.
void inferMatchSpans(
String searchword, {
SearchMode searchMode = SearchMode.Auto,
SearchMode searchMode = SearchMode.auto,
}) {
// TODO: handle wildcards like '?' and '*' when that becomes supported in the search.
// TODO: If the searchMode is provided, we can use that to narrow down which part of the word search results to look at.