mirror of
https://github.com/godotengine/godot.git
synced 2025-10-27 03:34:17 +00:00
Add contains_char() for single-character 'contains' calls.
This commit is contained in:
parent
eb5103093c
commit
b5c31ebb41
61 changed files with 108 additions and 99 deletions
|
|
@ -4323,7 +4323,7 @@ bool GDScriptParser::export_annotations(AnnotationNode *p_annotation, Node *p_ta
|
|||
push_error(vformat(R"(Argument %d of annotation "%s" is empty.)", i + 1, p_annotation->name), p_annotation->arguments[i]);
|
||||
return false;
|
||||
}
|
||||
if (arg_string.contains(",")) {
|
||||
if (arg_string.contains_char(',')) {
|
||||
push_error(vformat(R"(Argument %d of annotation "%s" contains a comma. Use separate arguments instead.)", i + 1, p_annotation->name), p_annotation->arguments[i]);
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue