diff --git a/source/blender/blenlib/intern/string_search.cc b/source/blender/blenlib/intern/string_search.cc index f87304863c9..50bbc253346 100644 --- a/source/blender/blenlib/intern/string_search.cc +++ b/source/blender/blenlib/intern/string_search.cc @@ -346,13 +346,15 @@ void extract_normalized_words(StringRef str, Vector &r_words) { const uint32_t unicode_space = uint32_t(' '); + const uint32_t unicode_slash = uint32_t('/'); const uint32_t unicode_right_triangle = UI_MENU_ARROW_SEP_UNICODE; BLI_assert(unicode_space == BLI_str_utf8_as_unicode(" ")); + BLI_assert(unicode_slash == BLI_str_utf8_as_unicode("/")); BLI_assert(unicode_right_triangle == BLI_str_utf8_as_unicode(UI_MENU_ARROW_SEP)); auto is_separator = [&](uint32_t unicode) { - return ELEM(unicode, unicode_space, unicode_right_triangle); + return ELEM(unicode, unicode_space, unicode_slash, unicode_right_triangle); }; /* Make a copy of the string so that we can edit it. */