1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-15 13:51:40 +00:00

Merge pull request #57562 from AnilBK/string-add-contains

String: Add contains().
This commit is contained in:
Rémi Verschelde
2022-02-03 22:21:24 +01:00
committed by GitHub
57 changed files with 142 additions and 119 deletions

View File

@@ -310,7 +310,7 @@ void ConnectDialog::set_dst_node(Node *p_node) {
StringName ConnectDialog::get_dst_method_name() const {
String txt = dst_method->get_text();
if (txt.find("(") != -1) {
if (txt.contains("(")) {
txt = txt.left(txt.find("(")).strip_edges();
}
return txt;