utils/analytics: fix handling of newlines

This commit is contained in:
Bo Anderson 2024-07-16 17:06:38 +01:00
parent af61acddd2
commit af429d4f1a
No known key found for this signature in database

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)?-/) }