Skip to content

Commit

Permalink
feat: Implement header
Browse files Browse the repository at this point in the history
  • Loading branch information
iykekings authored Feb 22, 2020
1 parent 1cec7b7 commit a0d0012
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LasCs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,10 @@ public string[] header()
var uncommentSth = removeComment(sth).Trim();
if(uncommentSth.Length < 0)
{
//throw las error
//TODO: Throw Error instead of printing to the console
Console.WriteLine("There is no header in the file");
}
return uncommentSth.Split("\n").Select(m => m.Trim().Split(@"\s+|[.]")[0]).ToArray();
return uncommentSth.Split("\n").Select(m => Regex.Split(m.Trim(), @"\s+|[.]")[0]).ToArray();
}

public static string removeComment(string str)
Expand Down

0 comments on commit a0d0012

Please sign in to comment.