Merge pull request #17729 from Homebrew/utils_analytics_strip

This commit is contained in:
Mike McQuaid 2024-07-14 14:11:19 -04:00 committed by GitHub
commit 55c0a9d3b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -113,6 +113,10 @@ module Utils
# Strip out any flag values to reduce cardinality and preserve privacy.
options_array.map! { |option| option.sub(/=.*/, "=") }
# Strip out --with-* and --without-* options
options_array.reject! { |option| option.match(/^--with(out)?-/) }
options = options_array.sort.uniq.join(" ")
# Tags must have low cardinality.