From 93fd6f916bc5a6b7504c5475f7cbcebabaae5277 Mon Sep 17 00:00:00 2001 From: Mike Holloway Date: Sat, 26 Jun 2021 17:11:23 -0400 Subject: [PATCH] On branch timer Changes to be committed: modified: main.go Arrays for each line of the tcp file. --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 1d67f1b..e4a535d 100644 --- a/main.go +++ b/main.go @@ -44,12 +44,12 @@ func check(e error) { } func tcp_rows(connections_file string) { - regexpression := regexp.MustCompile(`[^a-zA-Z0-9_:\r\n\t\v]+`) + regexpression := regexp.MustCompile(`[\r\n\t\v]+`) tcp_lines := strings.Split(connections_file, "\n") for _, line := range tcp_lines { trim_line := strings.TrimSpace(line) - values := regexpression.ReplaceAllString(trim_line, ",") + values := regexpression.Split(trim_line, -1) // Debug // fmt.Println("New Line ==========") fmt.Println(values)