MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / split

Method split

tools/mage/headers.go:45–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43}
44
45func (r *HeaderRule) split() {
46 lines := bytes.Split([]byte(strings.TrimSpace(r.Header)), []byte("\n"))
47 r.headerLines = make([]*regexp.Regexp, len(lines))
48 for i, line := range lines {
49 r.headerLines[i] = regexp.MustCompile(fmt.Sprintf("^%s$", string(line)))
50 }
51}
52
53func (r *HeaderRule) match(path string) (match bool) {
54 if len(r.Include) > 0 {

Callers 15

serve-dev-webui.jsFile · 0.45
getLineNumberOfIndexFunction · 0.45
insertAtLineAtIndexFunction · 0.45
flattenFunction · 0.45
splitMethod · 0.45
loadFileMethod · 0.45
decoderFunction · 0.45
index.jsFile · 0.45
index.jsFile · 0.45
FormFieldFunction · 0.45
DropdownFunction · 0.45
index.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected