Skip to content
Permalink
Browse files

Fixed a bug with the `timeLeft`detection.

  • Loading branch information
roncli committed Jan 31, 2017
1 parent 890a2b9 commit f0b5a308e300fd1955fce5b76073e7e2016b59ef
Showing with 6 additions and 2 deletions.
  1. +4 −0 README.md
  2. +1 −1 index.js
  3. +1 −1 package.json
@@ -310,6 +310,10 @@ Note that all instance methods return nothing. Any output from these methods is
## History
### Version 0.1.9 - 1/30/2017
* Fixed a bug with the `timeLeft` detection.
### Version 0.1.8 - 7/26/2015
* Fixed another bug with the `safeexec` RegExp extension.
@@ -472,7 +472,7 @@ Console.prototype.connect = function() {
return;
}

if (route(line, /^Time Left: (?:(?:([1-9][0-9]+):)?([0-5][0-9]?):)?([0-5][0-9]?) (?:hours?|minutes?|seconds?)$/, function(hours, minutes, seconds) {
if (route(line, /^Time Left: (?:(?:([1-9][0-9]+):)?([0-5]?[0-9]):)?([0-5]?[0-9]) (?:hours?|minutes?|seconds?)$/, function(hours, minutes, seconds) {
if (!hours) {
hours = 0;
}
@@ -1,6 +1,6 @@
{
"name": "descent3console",
"version": "0.1.8",
"version": "0.1.9",
"description": "A cross-platform, event-driven interface to Descent 3 consoles implemented in node.js.",
"keywords": [
"Descent 3",

0 comments on commit f0b5a30

Please sign in to comment.
You can’t perform that action at this time.