diff --git a/addons/common/functions/fnc_parseCsv.sqf b/addons/common/functions/fnc_parseCsv.sqf index c58d91f6..ee829d62 100644 --- a/addons/common/functions/fnc_parseCsv.sqf +++ b/addons/common/functions/fnc_parseCsv.sqf @@ -1,12 +1,14 @@ #include "..\script_component.hpp" /* - parse list of strings + parse list of strings into an array. tolerates arrays, will return input value in that case */ params [ - ["_rawValue", "", [""]] + ["_rawValue", "", ["", []]] ]; +if (_rawValue isEqualType []) exitWith { _rawValue }; + private _delimiter = ","; private _firstChar = _rawValue select [0, 1];