Skip to content

Commit d44b47d

Browse files
authored
optional regex stanza
1 parent 5d9cfd7 commit d44b47d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytest_splunk_addon/standard_lib/requirement_tests/test_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def strip_syslog_header(self, raw_event):
9797
stripped_header = regex_rfc5424.group(3)
9898
return stripped_header
9999
regex_rfc3164 = re.search(
100-
r"([A-Z][a-z][a-z]\s{1,2}\d{1,2}\s\d{2}[:]\d{2}[:]\d{2})\s+([\w][\w\d\.@-]*)\s\w*:(.*)$",
100+
r"([A-Z][a-z][a-z]\s{1,2}\d{1,2}\s\d{2}[:]\d{2}[:]\d{2})\s+([\w][\w\d\.@-]*)\s\w*:?(.*)$",
101101
raw_event,
102102
)
103103
if regex_rfc3164:

0 commit comments

Comments
 (0)