Skip to content

Commit

Permalink
Solved framework compatibility issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jaime-olivares committed Oct 6, 2024
1 parent c21a8dc commit f3af4bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Field.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ protected override void ProcessValue()
return;
}

this.HasRepetitions = _value.Contains(this.Encoding.RepeatDelimiter);
this.HasRepetitions = _value.Contains(this.Encoding.RepeatDelimiter.ToString());

if (this.HasRepetitions)
{
Expand Down
4 changes: 2 additions & 2 deletions src/MessageHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ public static byte[] GetMLLP(string message, Encoding encoding = null)
buffer[0] = 11; // VT

Array.Copy(data, 0, buffer, 1, data.Length);
buffer[^2] = 28; // FS
buffer[^1] = 13; // CR
buffer[buffer.Length - 2] = 28; // FS
buffer[buffer.Length - 1] = 13; // CR

return buffer;
}
Expand Down

0 comments on commit f3af4bc

Please sign in to comment.