mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Merge pull request #91619 from AThousandShips/find_improve
Replace `find` with `contains/has` where applicable
This commit is contained in:
@@ -744,7 +744,7 @@ String EditorHelpSearch::Runner::_match_keywords_in_all_terms(const String &p_ke
|
||||
|
||||
bool EditorHelpSearch::Runner::_match_string(const String &p_term, const String &p_string) const {
|
||||
if (search_flags & SEARCH_CASE_SENSITIVE) {
|
||||
return p_string.find(p_term) > -1;
|
||||
return p_string.contains(p_term);
|
||||
} else {
|
||||
return p_string.containsn(p_term);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user