You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
String: Add contains().
This commit is contained in:
@@ -1940,7 +1940,7 @@ static String marked_documentation(const String &p_bbcode) {
|
||||
line = "\t" + line.substr(code_block_indent, line.length());
|
||||
}
|
||||
|
||||
if (in_code_block && line.find("[/codeblock]") != -1) {
|
||||
if (in_code_block && line.contains("[/codeblock]")) {
|
||||
line = "\n";
|
||||
in_code_block = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user