parsing artist url

This commit is contained in:
Hazel Noack
2025-10-09 14:05:10 +02:00
parent 4c0f19b257
commit 1ae859b9b9
2 changed files with 51 additions and 4 deletions

View File

@@ -1,6 +1,7 @@
package common
import (
"regexp"
"strconv"
"strings"
)
@@ -21,3 +22,9 @@ func ZeroPad(num int, length int) string {
}
return strings.Repeat("0", length-len(str)) + str
}
var numericRegex = regexp.MustCompile(`^[\d]+$`)
func IsNumeric(num string) bool {
return numericRegex.MatchString(num)
}