mirror of
https://github.com/godotengine/godot.git
synced 2025-11-02 06:31:13 +00:00
Use get_slicec instead of get_slice for single character splitters
This commit is contained in:
parent
b5bdb88062
commit
466590d0ec
58 changed files with 210 additions and 210 deletions
|
|
@ -115,7 +115,7 @@ Error RDShaderFile::parse_versions_from_text(const String &p_text, const String
|
|||
base_error = "Missing `;` in '" + l + "'. Version syntax is `version = \"<defines with C escaping>\";`.";
|
||||
break;
|
||||
}
|
||||
Vector<String> slices = l.get_slice(";", 0).split("=");
|
||||
Vector<String> slices = l.get_slicec(';', 0).split("=");
|
||||
String version = slices[0].strip_edges();
|
||||
if (!version.is_valid_ascii_identifier()) {
|
||||
base_error = "Version names must be valid identifiers, found '" + version + "' instead.";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue