diff options
author | Emile <hanemile@protonmail.com> | 2019-09-14 22:54:55 +0200 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2019-09-14 22:54:55 +0200 |
commit | d4635457825b6feb4e21eb36cc8f448373a4e90e (patch) | |
tree | 97229698bc075c977da7589893cee30ebcf764e4 | |
parent | 71c975031203470c97667c3a6c467006abf59c45 (diff) |
stripping the spaces from the revolution numbers
-rw-r--r-- | convert.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/convert.go b/convert.go index a3ff44e..0e64637 100644 --- a/convert.go +++ b/convert.go @@ -220,7 +220,8 @@ func parseLineTwo(SplitTLE []string) (LineTwo, error) { } // Parse the RevolutionNumberAtEpoch - RevolutionNumberAtEpoch, err := strconv.Atoi(SplitTLE[2][63:68]) + RawRevolutionNumberAtEpoch := strings.TrimSpace(SplitTLE[2][63:68]) + RevolutionNumberAtEpoch, err := strconv.Atoi(RawRevolutionNumberAtEpoch) if err != nil { return LineTwo{}, fmt.Errorf("%s: %#v\n%v", "Could not parse the RevolutionNumberAtEpoch", SplitTLE[2][63:68], err) } |