(h *xxhash.Digest, regex string)
| 523 | } |
| 524 | |
| 525 | func addToHash(h *xxhash.Digest, regex string) { |
| 526 | if regex == "" { |
| 527 | return |
| 528 | } |
| 529 | _, _ = h.WriteString(regex) |
| 530 | _, _ = h.Write([]byte{'\xff'}) |
| 531 | } |
| 532 | |
| 533 | func (l *Limits) compileQueryAttributeRegex() error { |
| 534 | if !l.QueryPriority.Enabled && !l.QueryRejection.Enabled { |
no test coverage detected