Merge pull request #17775 from Homebrew/analytics

utils/analytics: fix handling of newlines
This commit is contained in:
Bo Anderson 2024-07-16 17:18:07 +01:00 committed by GitHub
commit e1d0ccccd2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -112,7 +112,7 @@ module Utils
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)?-/) }