mirror of
https://github.com/taigrr/most-specific-period.git
synced 2026-04-02 03:38:41 -07:00
Add whitespace stripping
This commit is contained in:
2
main.go
2
main.go
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user