Skip to content

Commit

Permalink
Do not extract enumeration types. (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamazeem authored Sep 16, 2023
1 parent 315de37 commit eb44e6e
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 eb44e6e

Please sign in to comment.