Skip to content

Commit

Permalink
Use double quotes for escape sequences
Browse files Browse the repository at this point in the history
  • Loading branch information
aeber committed Oct 30, 2023
1 parent 3a154cf commit 35b3218
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/audit_log_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def self.parse_line(line, flatten: false)
header.sub!(/: *\z/, '')
header = parse_header(header)
unless body.empty?
body, enriched = body.split('\u001D', 2)
body, enriched = body.split("\u001D", 2)
end
body = parse_body(body)
if enriched.nil?
Expand Down
2 changes: 1 addition & 1 deletion lib/audit_log_parser/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
class AuditLogParser
VERSION = '1.0.1'
VERSION = '1.0.2'
end
2 changes: 1 addition & 1 deletion spec/audit_log_parser_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
{"header"=>{"type"=>"EOE", "msg"=>"audit(1364475353.159:24270)"},
"body"=>{}},
# ---
%q{type=SOCKADDR msg=audit(1691745421.445:325852): saddr=01002F7661722F72756E2F6E7363642F736F636B657400000200000000000000F00A9DA3765500009D38EE68397F0000304DE768397F00006053E768FDFFFFFF0000000000000000007928A0816011E720AA9EA376550000F023FC68397F000000000000000000007B78F868397F\u001DSADDR={ saddr_fam=local path=/var/run/nscd/socket }} =>
"type=SOCKADDR msg=audit(1691745421.445:325852): saddr=01002F7661722F72756E2F6E7363642F736F636B657400000200000000000000F00A9DA3765500009D38EE68397F0000304DE768397F00006053E768FDFFFFFF0000000000000000007928A0816011E720AA9EA376550000F023FC68397F000000000000000000007B78F868397F\u001DSADDR={ saddr_fam=local path=/var/run/nscd/socket }" =>
{
"header"=>{"type"=>"SOCKADDR", "msg"=>"audit(1691745421.445:325852)"},
"body"=>
Expand Down

0 comments on commit 35b3218

Please sign in to comment.