summaryrefslogtreecommitdiff
path: root/common.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-03-02 17:51:59 -0600
committerJeff Carr <[email protected]>2024-03-02 17:51:59 -0600
commit2f451477c80acdfdc39e38378a2572a64c6b57d7 (patch)
treeda42bb5869885e4725a29edfd8bf89d7d587e91c /common.go
parenteebdaaf35763df8a159170c05a87eaaa37207484 (diff)
move this code to repostatusv0.22.0v0.21.3
Diffstat (limited to 'common.go')
-rw-r--r--common.go20
1 files changed, 0 insertions, 20 deletions
diff --git a/common.go b/common.go
index c2625f7..f482ac7 100644
--- a/common.go
+++ b/common.go
@@ -1,8 +1,6 @@
package repolist
import (
- "unicode"
-
"go.wit.com/gui"
"go.wit.com/lib/gui/repostatus"
"go.wit.com/log"
@@ -178,21 +176,3 @@ func (rl *RepoList) TotalGo() int {
}
return count
}
-
-func trimNonNumericFromStart(s string) string {
- for i, r := range s {
- if unicode.IsDigit(r) {
- return s[i:]
- }
- }
- return ""
-}
-
-func ValidDebianPackageVersion(v string) string {
- newv := trimNonNumericFromStart(v)
- if newv == "" {
- newv = "0.0"
- }
- log.Info("ValidDebianPackageVersion:", newv)
- return newv
-}