Skip to content

Commit

Permalink
Update main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamerminsk authored Jan 15, 2024
1 parent 99dd882 commit 1000fdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func GetPlayer(text string) string {

func GetCenturies(text string) []int {
centuries := []int{}
values := strings.Split(strings.TrimSpace(text), ",")
values := strings.Split(strings.TrimSpace(strings.Replace(text, "*", "", 1)), ",")
for _, value := range values {
century, err := strconv.Atoi(strings.TrimSpace(value))
if err != nil {
Expand Down

0 comments on commit 1000fdf

Please sign in to comment.