You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 19:11:41 +00:00
String: Add contains().
This commit is contained in:
@@ -1295,7 +1295,7 @@ void ScriptTextEditor::_edit_option_toggle_inline_comment() {
|
||||
script->get_language()->get_comment_delimiters(&comment_delimiters);
|
||||
|
||||
for (const String &script_delimiter : comment_delimiters) {
|
||||
if (script_delimiter.find(" ") == -1) {
|
||||
if (!script_delimiter.contains(" ")) {
|
||||
delimiter = script_delimiter;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user