Update count.go

This commit is contained in:
kuoi 2022-01-15 10:48:16 +00:00 committed by GitHub
parent 65196699c3
commit e599b8486d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,7 +41,7 @@ func fas_count(sum_nex []dna) []charset {
func fas_name(old_name string) string { func fas_name(old_name string) string {
//needed to import string //needed to import string
compileRegex := regexp.MustCompile(`(w+.`) compileRegex := regexp.MustCompile(`\w+.`)
matchArr := compileRegex.FindStringSubmatch(old_name) matchArr := compileRegex.FindStringSubmatch(old_name)
//needed to use the string get from the old string //needed to use the string get from the old string
new_name := matchArr[len(matchArr)-1] new_name := matchArr[len(matchArr)-1]