diff --git a/pkg/parser/parser.go b/pkg/parser/parser.go index 9da9d4c..6280695 100644 --- a/pkg/parser/parser.go +++ b/pkg/parser/parser.go @@ -142,6 +142,11 @@ func parseRouteLine(str string) (*types.Route, bool) { clean := spaceRemover.ReplaceAllString(str, " ") clean = tabReplacer.ReplaceAllString(clean, " ") clean = strings.TrimSpace(clean) + + if len(clean) == 0 { + return nil, false + } + result := endingComment.FindStringSubmatch(clean) tResult := strings.TrimSpace(result[1]) p := strings.Split(tResult, " ")