about summary refs log tree commit diff
path: root/convert.go
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-09-14 22:54:55 +0200
committerEmile <hanemile@protonmail.com>2019-09-14 22:54:55 +0200
commitd4635457825b6feb4e21eb36cc8f448373a4e90e (patch)
tree97229698bc075c977da7589893cee30ebcf764e4 /convert.go
parent71c975031203470c97667c3a6c467006abf59c45 (diff)
stripping the spaces from the revolution numbers
Diffstat (limited to 'convert.go')
-rw-r--r--convert.go3
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)
 	}