lib/appmap/util.rb in appmap-0.95.0 vs lib/appmap/util.rb in appmap-0.95.1

- old
+ new

@@ -150,10 +150,11 @@ # to Swagger-style paths like /org/{org_id} def swaggerize_path(path) path = path.split('(.')[0] tokens = path.split('/') tokens.map do |token| - token.gsub(/^:(.*)/, '{\1}') + # stop matching if an ending ) is found + token.gsub(/^:(.*[^\)])/, '{\1}') end.join('/') end # Atomically writes AppMap data to +filename+. def write_appmap(filename, appmap)