Skip to content

Commit

Permalink
Support multi-line values
Browse files Browse the repository at this point in the history
  • Loading branch information
cmm-cjohnson committed Jun 21, 2019
1 parent 6cf8f2a commit 7aa87aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sql_footprint/sql_anonymizer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class SqlAnonymizer
/([\s\(])'.*'/ => "\\1'value-redacted'".freeze, # literal strings
/N''.*''/ => "N''value-redacted''".freeze, # literal MSSQL strings
/\s+(!=|=|<|>|<=|>=)\s+[0-9]+/ => ' \1 number-redacted'.freeze, # numbers
/\s+VALUES\s+\(.+\)/ => ' VALUES (values-redacted)'.freeze, # VALUES
/\s+VALUES\s+\(.*?\)/m => ' VALUES (values-redacted)'.freeze, # VALUES
}

def anonymize sql
Expand Down

0 comments on commit 7aa87aa

Please sign in to comment.