Skip to content

Commit a0d3424

Browse files
committed
Fix problem with IP regex
1 parent 96aa405 commit a0d3424

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

AndroidViewClient/src/com/dtmilano/android/viewclient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1076,7 +1076,7 @@ def connectToDeviceOrExit(timeout=60, verbose=False, ignoresecuredevice=False, s
10761076
if secure == '1' and debuggable == '0' and not ignoresecuredevice and version < 16:
10771077
print >> sys.stderr, "%s: ERROR: Device is secure, AndroidViewClient won't work." % progname
10781078
sys.exit(2)
1079-
if re.search("[.*()+]", serialno) and not re.search("(\d{1,3}\.){3}\d{1,3}"):
1079+
if re.search("[.*()+]", serialno) and not re.search("(\d{1,3}\.){3}\d{1,3}", serialno):
10801080
# if a regex was used we have to determine the serialno used
10811081
serialno = ViewClient.__obtainDeviceSerialNumber(device)
10821082
return device, serialno

0 commit comments

Comments
 (0)