prometheus/model/labels
Marco Pracucci eeecfee885
Do not optimize regexps with begin/end text anchors inside (#433)
* Do not optimize regexps with being/end text anchors inside

Signed-off-by: Marco Pracucci <marco@pracucci.com>

* Explicit case for begin/end text in stringMatcherFromRegexpInternal()

Signed-off-by: Marco Pracucci <marco@pracucci.com>

* Added more test cases

Signed-off-by: Marco Pracucci <marco@pracucci.com>

---------

Signed-off-by: Marco Pracucci <marco@pracucci.com>
2023-03-01 14:50:26 +01:00
..
labels.go Simplify IndexReader.Series interface 2022-12-19 15:22:09 +00:00
labels_test.go Simplify IndexReader.Series interface 2022-12-19 15:22:09 +00:00
matcher.go Expose Matcher.Prefix() 2023-01-19 17:21:28 +01:00
matcher_test.go Expose Matcher.Prefix() 2023-01-19 17:21:28 +01:00
regexp.go Do not optimize regexps with begin/end text anchors inside (#433) 2023-03-01 14:50:26 +01:00
regexp_test.go Do not optimize regexps with begin/end text anchors inside (#433) 2023-03-01 14:50:26 +01:00
sharding.go Hardcode the labels stable hash function instead of taking it as an option 2023-01-30 14:21:18 +01:00
test_utils.go labels: use ScratchBuilder in ReadLabels 2022-12-19 15:22:09 +00:00