Skip to content

Commit

Permalink
Merge pull request #58 from cospirho/main
Browse files Browse the repository at this point in the history
Fix invalid escape sequence
  • Loading branch information
thomaspatzke authored Apr 22, 2024
2 parents bc161a3 + 417487b commit 87a69cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sigma/backends/elasticsearch/elasticsearch_lucene.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ def convert_condition_field_eq_val_cidr(
return (
super()
.convert_condition_field_eq_val_cidr(cond, state)
.replace(":::", ":\:\:")
.replace("::\/", "\:\:\/")
.replace(":::", r":\:\:")
.replace(r"::\/", r"\:\:\/")
)
else:
return super().convert_condition_field_eq_val_cidr(cond, state)
Expand Down

0 comments on commit 87a69cd

Please sign in to comment.