Skip to content

Commit

Permalink
utils/analytics: fix handling of newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo98 committed Jul 18, 2024
1 parent dc72111 commit 772149d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/utils/analytics.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def report_command_run(command_instance)
options_array = command_instance.args.options_only.to_a.compact

# Strip out any flag values to reduce cardinality and preserve privacy.
options_array.map! { |option| option.sub(/=.*/, "=") }
options_array.map! { |option| option.sub(/=.*/m, "=") }

# Strip out --with-* and --without-* options
options_array.reject! { |option| option.match(/^--with(out)?-/) }
Expand Down

0 comments on commit 772149d

Please sign in to comment.