You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-28 16:07:14 +00:00
Replace find with contains/has where applicable
* Replaces `find(...) != -1` with `contains` for `String` * Replaces `find(...) == -1` with `!contains` for `String` * Replaces `find(...) != -1` with `has` for containers * Replaces `find(...) == -1` with `!has` for containers
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.findn(p_term) > -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user