Update count.go

This commit is contained in:
kuoi 2022-01-15 10:48:01 +00:00 committed by GitHub
parent 3449750a73
commit 65196699c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

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