Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add "r" to STRING_ESCAPE_CHARS in plyara
  • Loading branch information
cccs-rs authored Jan 2, 2024
2 parents a35247c + 4493678 commit 534f6a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions yara_validator/yara_file_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def __init__(self, rule_file, char_to_replace, char_replacement, count_of_replac

# Plyara object for parsing the yara rule file
parser = plyara.Plyara()
parser.STRING_ESCAPE_CHARS.add("r")
file_name = ''
# This block attempts to read the file as utf-8. If there are any issues with the file format or reading
# the file it creates a yara_rule object and sets the error state
Expand Down

0 comments on commit 534f6a0

Please sign in to comment.