Update count.go
This commit is contained in:
parent
3449750a73
commit
65196699c3
1 changed files with 3 additions and 3 deletions
6
count.go
6
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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue