From c098cabced9518553a6f39ee404b331e083a9315 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=88=E5=AD=A3=E8=8A=B1=E4=B8=AD=E7=9A=84=E6=98=9F?= =?UTF-8?q?=E8=BE=B0?= Date: Sat, 15 Jan 2022 10:37:57 +0000 Subject: [PATCH] Update count.go --- count.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/count.go b/count.go index d0d318f..fe8905f 100644 --- a/count.go +++ b/count.go @@ -40,10 +40,9 @@ func fas_count(sum_nex []dna) []charset { func fas_name(old_name string) string { //needed to import string - str := compileRegex := regexp.MustCompile("(\w+).\w+") - matchArr := compileRegex.FindStringSubmatch(str) + matchArr := compileRegex.FindStringSubmatch(old_name) //needed to use the string get from the old string - fmt.Println("output content:", matchArr[len(matchArr)-1]) + oldname := matchArr[len(matchArr)-1] return old_name }