Skip to content

Commit

Permalink
Merge pull request #59 from heskethw/master
Browse files Browse the repository at this point in the history
Fixed bug with ragged right files
  • Loading branch information
forcewake authored Dec 19, 2017
2 parents faf351b + ea09ce0 commit 20004b3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ private static string GetValueFromLine(string line, int linePosition, IFixedFiel
{
if (linePosition + field.Length > line.Length)
{
if ((linePosition + field.Length) - line.Length != field.Length)
if ((linePosition + field.Length) - line.Length != field.Length && linePosition <= line.Length)
{
return line.Substring(linePosition);
}
Expand Down

0 comments on commit 20004b3

Please sign in to comment.