diff --git a/source/blender/blenlib/intern/string_search.cc b/source/blender/blenlib/intern/string_search.cc index f740f52f627..28f33c8c591 100644 --- a/source/blender/blenlib/intern/string_search.cc +++ b/source/blender/blenlib/intern/string_search.cc @@ -481,6 +481,7 @@ void extract_normalized_words(StringRef str, void StringSearchBase::add_impl(const StringRef str, void *user_data, const float weight) { + BLI_assert(BLI_str_utf8_invalid_byte(str.data(), str.size()) == -1); Vector words; Vector word_group_ids; string_search::extract_normalized_words(str, allocator_, words, word_group_ids);