Skip to content

Commit 2ced0dc

Browse files
Add reference to issue
1 parent c19c8e3 commit 2ced0dc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

detection_rules/rule_formatter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ def dump_str(self, v: str | NonformattedField) -> str:
151151
return "\n".join([TRIPLE_SQ] + [self._old_dump_str(line)[1:-1] for line in lines] + [TRIPLE_SQ])
152152
if raw:
153153
return f"'{lines[0]:s}'"
154+
# In the toml library there is a magic replace for \\\\x -> u00 that we wish to avoid until #4979 is resolved
154155
if "\\\\x" in v:
155156
return f'"{v!s}"'
156157
return self._old_dump_str(v)

0 commit comments

Comments
 (0)