Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cli/cli
/ matchFileInZIPArchive
Function
matchFileInZIPArchive
pkg/cmd/run/view/logs.go:350–357 ·
view source on GitHub ↗
(zr *zip.Reader, re *regexp.Regexp)
Source
from the content-addressed store, hash-verified
348
}
349
350
func
matchFileInZIPArchive(zr *zip.Reader, re *regexp.Regexp) *zip.File {
351
for
_, file :=
range
zr.File {
352
if
re.MatchString(file.Name) {
353
return
file
354
}
355
}
356
return
nil
357
}
Callers
1
getZipLogMap
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected