Skip to content

Commit 5761661

Browse files
committed
Strip _name from signal source names, if present.
1 parent 4baa07a commit 5761661

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

DataDefinitions/SignalSource.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ private SignalSource(string edname, string altEdName = null) : base(edname, edna
125125
this.altEdName = altEdName;
126126
}
127127

128-
public new static SignalSource FromEDName(string from)
128+
public static new SignalSource FromEDName(string from)
129129
{
130130
if (from == null) return null;
131131

@@ -160,7 +160,8 @@ private SignalSource(string edname, string altEdName = null) : base(edname, edna
160160
{
161161
string tidiedFrom = from
162162
.Replace("$", "")
163-
.Replace(";", "");
163+
.Replace(";", "")
164+
.Replace("_name", "");
164165

165166
// Remove various prefix and suffix tags from non-USS sources
166167
if (!tidiedFrom.StartsWith("USS_"))

0 commit comments

Comments
 (0)