Add whitespace stripping

This commit is contained in:
2022-03-07 15:22:07 -08:00
parent 32588e22f9
commit ca6ba89bce

View File

@@ -5,6 +5,7 @@ import (
"flag" "flag"
"fmt" "fmt"
"os" "os"
"strings"
"time" "time"
"github.com/taigrr/most-specific-period/msp" "github.com/taigrr/most-specific-period/msp"
@@ -43,6 +44,7 @@ func main() {
for s.Scan() { for s.Scan() {
input := s.Text() input := s.Text()
input = strings.TrimSpace(input)
if input == "" { if input == "" {
continue continue
} }