Fix the test for bad regexes

This test did not fail because the regex was bad, it failed because yaml
parsing failed.

This fixes the yaml which uncovers a panic in initFromYAMLString.
This commit is contained in:
Katharina Dankert 2018-02-22 23:44:09 +01:00
parent 745e53700f
commit d1f7ca4239

View file

@ -310,7 +310,7 @@ mappings:
{
config: `---
mappings:
- match: "*\.foo"
- match: "*\\.foo"
match_type: regex
name: "foo"
labels: {}