Skip to content

Commit

Permalink
Do not extract enumeration types.
Browse files Browse the repository at this point in the history
  • Loading branch information
iamazeem committed Sep 16, 2023
1 parent dc8e1b1 commit ed22846
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/proto-convert
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ end
def valid_msgtype?(compiled_proto, msg_type)
msg_types = []
File.foreach(compiled_proto) do |line|
if line.include?('::Google::Protobuf::DescriptorPool.generated_pool.lookup')
line.strip!
if line.include?('::Google::Protobuf::DescriptorPool.generated_pool.lookup') && line.end_with?('.msgclass')
extracted_msg_type = line[/"([^"]*)"/, 1].freeze
msg_types.push(extracted_msg_type) unless extracted_msg_type.nil?
end
Expand Down

0 comments on commit ed22846

Please sign in to comment.