Update count.go
This commit is contained in:
parent
2c26c9e50a
commit
c098cabced
1 changed files with 2 additions and 3 deletions
5
count.go
5
count.go
|
@ -40,10 +40,9 @@ 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
|
||||||
str :=
|
|
||||||
compileRegex := regexp.MustCompile("(\w+).\w+")
|
compileRegex := regexp.MustCompile("(\w+).\w+")
|
||||||
matchArr := compileRegex.FindStringSubmatch(str)
|
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
|
||||||
fmt.Println("output content:", matchArr[len(matchArr)-1])
|
oldname := matchArr[len(matchArr)-1]
|
||||||
return old_name
|
return old_name
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue