lib/appium_lib/common/patch.rb in appium_lib-1.0.0 vs lib/appium_lib/common/patch.rb in appium_lib-2.0.0
- old
+ new
@@ -82,10 +82,10 @@
# change path from session/efac972c-941a-499c-803c-d7d008749/execute
# to /execute
# path may be nil, session, or not have anything after the session_id.
path_str = path
path_str = '/' + path_str unless path_str.nil? ||
- path_str.length <= 0 || path_str[0] == '/'
+ path_str.length <= 0 || path_str[0] == '/'
path_match = path.match /.*\h{8}-?\h{4}-?\h{4}-?\h{4}-?\h{12}/
path_str = path.sub(path_match[0], '') unless path_match.nil?
puts "#{verb} #{path_str}"
unless command_hash.nil? || command_hash.length == 0
\ No newline at end of file