Skip to content

Commit

Permalink
change(reutils): trim 0 from start of GetEveryNumber result
Browse files Browse the repository at this point in the history
  • Loading branch information
l3uddz committed May 17, 2020
1 parent f2606ef commit aae09d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reutils/numbers.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ var (
func GetEveryNumber(from string) string {
matches := num.FindAllString(from, -1)
val := strings.Join(matches, "")
return val
return strings.TrimLeft(val, "0")
}

0 comments on commit aae09d9

Please sign in to comment.