Skip to content

Commit

Permalink
Fix problem with IP regex
Browse files Browse the repository at this point in the history
  • Loading branch information
dtmilano committed Dec 14, 2012
1 parent 96aa405 commit a0d3424
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AndroidViewClient/src/com/dtmilano/android/viewclient.py
Expand Up @@ -1076,7 +1076,7 @@ def connectToDeviceOrExit(timeout=60, verbose=False, ignoresecuredevice=False, s
if secure == '1' and debuggable == '0' and not ignoresecuredevice and version < 16:
print >> sys.stderr, "%s: ERROR: Device is secure, AndroidViewClient won't work." % progname
sys.exit(2)
if re.search("[.*()+]", serialno) and not re.search("(\d{1,3}\.){3}\d{1,3}"):
if re.search("[.*()+]", serialno) and not re.search("(\d{1,3}\.){3}\d{1,3}", serialno):
# if a regex was used we have to determine the serialno used
serialno = ViewClient.__obtainDeviceSerialNumber(device)
return device, serialno
Expand Down

0 comments on commit a0d3424

Please sign in to comment.