From 65196699c37c62ee46d31705ef4651ce79621b43 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:48:01 +0000 Subject: [PATCH] Update count.go --- count.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/count.go b/count.go index 3aa8a43..42c344e 100644 --- a/count.go +++ b/count.go @@ -41,9 +41,9 @@ func fas_count(sum_nex []dna) []charset { func fas_name(old_name string) string { //needed to import string - compileRegex := regexp.MustCompile("(\w+).\w+") + compileRegex := regexp.MustCompile(`(w+.`) matchArr := compileRegex.FindStringSubmatch(old_name) //needed to use the string get from the old string - old_name := matchArr[len(matchArr)-1] - return old_name + new_name := matchArr[len(matchArr)-1] + return new_name }