Skip to content

Commit

Permalink
analytics: add square brackets symbols for regex
Browse files Browse the repository at this point in the history
Change-Id: I1dcd2f0da96d42ebbdfa4a885be38a771c35dbb9
  • Loading branch information
ylamgarchal committed Nov 7, 2024
1 parent 0b74159 commit db76b94
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion dci/analytics/query_es_dsl.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,20 @@

_field = pp.Word(pp.alphanums + "_" + ".")
_value = pp.Word(
pp.alphanums + "_" + "-" + "%" + "." + ":" + "\\" + "*" + "?" + "+" + "{" + "}"
pp.alphanums
+ "_"
+ "-"
+ "%"
+ "."
+ ":"
+ "\\"
+ "*"
+ "?"
+ "+"
+ "{"
+ "}"
+ "["
+ "]"
)
_word = pp.Word(pp.alphanums + "_" + "-" + "." + " " + ":")
_comma = pp.Suppress(pp.Literal(","))
Expand Down

0 comments on commit db76b94

Please sign in to comment.