v0.2.0 toml-only, harden concurrency and env export, dep updates
Test / test (push) Canceled after 0s
Test / test (push) Canceled after 0s
This commit is contained in:
1 parent
3c35601179
commit
e08467bf38
42 files changed
+2533
-4274
No files matched your search
@@ -74,6 +74,15 @@ func isValidKeySegment(s string) bool {
|
||||
return false // Segments themselves cannot contain dots
|
||||
}
|
||||
|
||||
numeric := strings.TrimLeft(s, "-") != ""
|
||||
for _, r := range strings.TrimLeft(s, "-") {
|
||||
if r < '0' || r > '9' {
|
||||
numeric = false
|
||||
}
|
||||
}
|
||||
if numeric {
|
||||
return false
|
||||
}
|
||||
for _, r := range s {
|
||||
isLetter := (r >= 'a' && r <= 'z') || (r >= 'A' && r <= 'Z')
|
||||
isDigit := r >= '0' && r <= '9'
|
||||
@@ -85,4 +94,4 @@ func isValidKeySegment(s string) bool {
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user