fix pure crash (algo abbreviation code choked on names that end with a space)
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user