mirror of
https://github.com/godotengine/godot.git
synced 2025-11-03 15:11:19 +00:00
[Core] Add case-insensitive String::containsn
This commit is contained in:
parent
281fe39929
commit
b4c6cc7d82
23 changed files with 64 additions and 32 deletions
|
|
@ -81,7 +81,7 @@ void ReplicationEditor::_pick_node_select_recursive(TreeItem *p_item, const Stri
|
|||
NodePath np = p_item->get_metadata(0);
|
||||
Node *node = get_node(np);
|
||||
|
||||
if (!p_filter.is_empty() && ((String)node->get_name()).findn(p_filter) != -1) {
|
||||
if (!p_filter.is_empty() && ((String)node->get_name()).containsn(p_filter)) {
|
||||
p_select_candidates.push_back(node);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue