Skip to content

Commit

Permalink
removed match? for 2.3 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario.RuizSanchez committed Feb 1, 2019
1 parent eccc57b commit 1f6be76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/open_api_import.rb
Expand Up @@ -312,7 +312,7 @@ def self.from(swagger_file, create_method_name: :operation_id, include_responses
end

#for the case we still have some parameters on path that were not in 'parameters'
if path_txt.match?(/[^#]{\w+}/)
if path_txt.scan(/[^#]{\w+}/).size > 0
paramst = []
prms = path_txt.scan(/[^#]{(\w+)}/)
prms.each do |p|
Expand Down

0 comments on commit 1f6be76

Please sign in to comment.