MCPcopy Create free account
hub / github.com/WICG/webpackage / isAscii

Function isAscii

go/bundle/decoder.go:86–88  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

84var reIsAscii = regexp.MustCompile("^[[:ascii:]]*$")
85
86func isAscii(s string) bool {
87 return reIsAscii.MatchString(s)
88}
89
90// https://wicg.github.io/webpackage/draft-yasskin-dispatch-bundled-exchanges.html#cbor-headers
91func decodeCborHeaders(dec *cbor.Decoder) (http.Header, map[string]string, error) {

Callers 1

decodeCborHeadersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected