Skip to content

Commit

Permalink
Merge pull request #436 from Homebrew/invalid_characters
Browse files Browse the repository at this point in the history
cmd/formula-analytics: skip dimensions with invalid characters.
  • Loading branch information
MikeMcQuaid committed Apr 9, 2024
2 parents b30e886 + ad1a490 commit 2c4abe3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/formula-analytics.rb
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ def influx_analytics(args)
end

dimension = dimension.strip
next if dimension.match?(/[<>]/)

# we want any valid count that isn't the options out of:
# "time", "count_options", "count_os_name_and_version", "count_package", "count_tap_name", "count_version"
Expand Down

0 comments on commit 2c4abe3

Please sign in to comment.