fix pure crash (algo abbreviation code choked on names that end with a space)

This commit is contained in:
John Colvin committed 2020-07-07 13:15:55 -05:00
1 parent a69118c5d3
commit 3da52b350f
1 file changed
+1 -1
@@ -143,7 +143,7 @@ namespace mbts.spark {
string candidate = string.Empty;
if (a.HasValue) {
var algo_name = a.Value.name;
var words = algo_name.Split(delim);
var words = algo_name.Split(delim, StringSplitOptions.RemoveEmptyEntries);
if (words.Length == 1) {
var single_word = words[0];
if (single_word.Length > 1) {