2
0
Fork 0

Update to 203018db6f281dca5ea2f806bf89ff1427c4560a

This commit is contained in:
JeremyStar™ 2024-03-24 15:57:50 +01:00
parent d38a33de8f
commit 24ae3a10bf

View file

@ -60,3 +60,14 @@ func format_stringarray(array: Array[String], item_before: String = "", item_aft
output = output.replace("If you somehow see this text report this at https://git.staropensource.de/StarOpenSource/CORE/issues, thank you!", separator_final)
return output
func array_to_stringarray(array: Array) -> Array[String]:
var output: Array[String] = []
for item in array:
if typeof(item) != TYPE_STRING:
logger.error("Cannot convert Array to Array[String]: Item '" + str(item) + "' is not of type String")
return []
output.append(item)
return output