Skip to content

Commit

Permalink
Allow a single port to be specified
Browse files Browse the repository at this point in the history
  • Loading branch information
hollingsworthd committed Jan 22, 2016
1 parent a316012 commit cb62a70
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public class JBrowserDriver implements WebDriver, JavascriptExecutor, FindsById,
for (int i = 0; i < ranges.length; i++) {
String[] bounds = ranges[i].split("-");
int low = Integer.parseInt(bounds[0]);
int high = Integer.parseInt(bounds[1]);
int high = bounds.length > 1 ? Integer.parseInt(bounds[1]) : low;
for (int j = low; j <= high; j++) {
ports.add(j);
}
Expand Down

0 comments on commit cb62a70

Please sign in to comment.