Update count.go

This commit is contained in:
kuoi 2022-01-15 10:37:57 +00:00 committed by GitHub
parent 2c26c9e50a
commit c098cabced
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}