Skip to content

Commit

Permalink
Shortened comment. Fixes #209
Browse files Browse the repository at this point in the history
  • Loading branch information
Killswitch00 committed Dec 3, 2015
1 parent aab95dc commit 565f6c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/strings/fnc_split.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ _split = [];
_index = 0;
_inputCount = count _input;
_separatorCount = count _separator;
// Corner cases no longer handled well by splitString
// Corner cases
if (_separatorCount == 0 && _inputCount == 0) exitWith {[]};
if (_separatorCount == 0) exitWith {_input splitString ""};
if (_inputCount > 0 && _separatorCount > _inputCount) exitWith {[_input]};
Expand Down

0 comments on commit 565f6c9

Please sign in to comment.