build: use sequence Split introduced in go1.24
This commit is contained in:
+1
-1
@@ -157,7 +157,7 @@ func testsToRegexp(tests []string) string {
|
||||
// Make a trie showing which parts are used at each level
|
||||
for _, test := range tests {
|
||||
parent := split
|
||||
for _, name := range strings.Split(test, "/") {
|
||||
for name := range strings.SplitSeq(test, "/") {
|
||||
current := parent[name]
|
||||
if current == nil {
|
||||
current = trie{}
|
||||
|
||||
Reference in New Issue
Block a user