You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-26 15:46:23 +00:00
Add contains_char() for single-character 'contains' calls.
This commit is contained in:
@@ -740,7 +740,7 @@ bool FileAccess::store_csv_line(const Vector<String> &p_values, const String &p_
|
||||
for (int i = 0; i < size; ++i) {
|
||||
String value = p_values[i];
|
||||
|
||||
if (value.contains("\"") || value.contains(p_delim) || value.contains("\n")) {
|
||||
if (value.contains_char('"') || value.contains(p_delim) || value.contains_char('\n')) {
|
||||
value = "\"" + value.replace("\"", "\"\"") + "\"";
|
||||
}
|
||||
if (i < size - 1) {
|
||||
|
||||
Reference in New Issue
Block a user