Skip to content

Commit

Permalink
Handle non-breaking spaces when parsing times in the core runner
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Jul 26, 2016
1 parent aead1f8 commit 4c5b29f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ public void setDefaultTimeout(long defaultTimeout) {
}

protected long getTimeout(String timeout) {
// Of course, a non-breaking space doesn't count as whitespace.
timeout = timeout.replace('\u00A0',' ').trim();
return "".equals(timeout) ? defaultTimeout : Long.valueOf(timeout);
}

Expand Down

0 comments on commit 4c5b29f

Please sign in to comment.