Skip to content

Commit fb5a644

Browse files
Merge pull request #380 from GridProtectionAlliance/FixVariableList
Updated the VariableList expression to ignore empty values
2 parents f0f7e1e + ebadd57 commit fb5a644

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Libraries/Adapters/DynamicCalculator/DynamicCalculator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public string VariableList
213213
return;
214214

215215
// Build the collection of variable names with the new value
216-
foreach (string token in value.Split(';'))
216+
foreach (string token in value.Split([';'], StringSplitOptions.RemoveEmptyEntries))
217217
AddVariable(token);
218218

219219
// Perform alias replacement on tokens that were not explicitly aliased

0 commit comments

Comments
 (0)