Skip to content

Commit c81bba8

Browse files
Sauce doesn't use dashes in the session id
Local appium uses dashes
1 parent 613c33e commit c81bba8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/appium_lib/common/patch.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def raw_execute(command, opts = {}, command_hash = nil)
103103
path_str = path
104104
path_str = '/' + path_str unless path_str.nil? ||
105105
path_str.length <= 0 || path_str[0] == '/'
106-
path_match = path.match /.*\h{8}-\h{4}-\h{4}-\h{4}-\h{12}/
106+
path_match = path.match /.*\h{8}-?\h{4}-?\h{4}-?\h{4}-?\h{12}/
107107
path_str = path.sub(path_match[0], '') unless path_match.nil?
108108

109109
puts "#{verb} #{path_str}"

0 commit comments

Comments
 (0)